[Support] fithwum - FoundryVTT


Recommended Posts

  • 1 month later...

Minor question, when accessing Foundry through swag i am required to append a path like /setup or /join in order for the Foundry page to show up. If I dont do that it shows the swag landing page. When I connect over IP from the local network it automatically redirects to the above mentioned paths. Any idea if that is fixable?

Link to comment
5 hours ago, rumo said:

Minor question, when accessing Foundry through swag i am required to append a path like /setup or /join in order for the Foundry page to show up. If I dont do that it shows the swag landing page. When I connect over IP from the local network it automatically redirects to the above mentioned paths. Any idea if that is fixable?


I have my SWAG forward setup so that my players just enter https://foundryvtt.<domain> and it forwards to the '/join' url, swag config below, note the /join on the end of the proxypass line.  I then VPN in to my network access the setup page via local IP bookmark with /setup on it, I try to keep admin and management ui's to things not externally facing, as I pretty much never have to go in there once a game is setup. 
 

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name foundryvtt.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app foundryvtt;
        set $upstream_port 30000;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port/join;

        proxy_max_temp_file_size 2048m;
    }
}


This works for me either with or without the /join, if I have a world started and don't have the '/join' in proxypass line it will default to that, otherwise it just gives me a white page with Foundry VTT and version number until I start a world. 

Edited by Dawthus
Link to comment

The container doesnt seem to work in bridge mode, and I need to use bridge mode to do port mapping since i want to run two instances of Foundry (two different licenses) on my unraid server and both cant have port 30000.

 

 

EDIT: Hmmmm, turning ONE to bridge mode with host port 30000 mapped to container port 30000 works but the other one with a port mapping from host port 30001 to container port 30000 doesnt....

 

EDIT2: Looks like when i change the Host Port template variable it changes the container port.....

kMW32ld.png

 

Why wont it let me change the container port value?

 

EDIT3: aparently unraid doesnt let you change container ports, gotta just remove and add it. All working now! 

Edited by Taako
Link to comment
  • 2 months later...

Im having a problem where i can access fine fvtt trough a domain but when i paste the key and get to the configuration to start a world the "play" button goes grey and do nothing. If i access directly trough unraid:port everything works.

 

Im using this proxy manager:

As options i enable Cache assets, Websocket support, Force SSL (letsencrypt) and i added in the custom configuration this bit:

add_header Referrer-Policy "same-origin" always;
add_header Access-Control-Allow-Origin https://domain.redacted always;
client_max_body_size 1024M;
fastcgi_buffers 64 4K;
set $upstream_app FoundryVTT;
proxy_max_temp_file_size 1024m;

 

The complete automated config file looks like this:

# ------------------------------------------------------------
# domain.redacted
# ------------------------------------------------------------


server {
  set $forward_scheme http;
  set $server         "192.168.8.105";
  set $port           30000;

  listen 80;
listen [::]:80;

listen 443 ssl http2;
listen [::]:443;


  server_name domain.redacted;


  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-2/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-2/privkey.pem;

    # Force SSL
    include conf.d/include/force-ssl.conf;


proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;


  access_log /data/logs/proxy-host-2_access.log proxy;
  error_log /data/logs/proxy-host-2_error.log warn;

add_header Referrer-Policy "same-origin" always;
add_header Access-Control-Allow-Origin https://domain.redacted always;
client_max_body_size 1024M;
fastcgi_buffers 64 4K;
set $upstream_app FoundryVTT;
proxy_max_temp_file_size 1024m;

location / {

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_http_version 1.1;
    

    # Proxy!
    include conf.d/include/proxy.conf;
  }


  # Custom
  include /data/nginx/custom/server_proxy[.]conf;
}

proxy.conf:

add_header       X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto  $scheme;
proxy_set_header X-Forwarded-For    $remote_addr;
proxy_set_header X-Real-IP          $remote_addr;
proxy_pass       $forward_scheme://$server:$port;

 

options.json

{
  "port": 30000,
  "upnp": false,
  "fullscreen": false,
  "hostname": "domain.redacted",
  "routePrefix": null,
  "sslCert": null,
  "sslKey": null,
  "awsConfig": null,
  "dataPath": "/foundry/data",
  "proxySSL": true,
  "proxyPort": 443,
  "minifyStaticFiles": true,
  "updateChannel": "release",
  "language": "it.FoundryVTT - it-IT",
  "world": null
}

 

On this proxy i have all sort of hosts: plex, wikijs (that runs on nodejs and has no problems of sorts), my firm site, a gitlab etc and foundryvtt is the only one I am having problems with.

 

What Im doing wrong?

Edited by exico
Link to comment
1 hour ago, exico said:

fvtt

What happens on port 30000? Is it a http website or something different? You can't use Nginx server configs for every type of data. Some need "stream" configurations.

 

Or does it work with swag? Then we could try to compare the configs.

Link to comment
  • 1 month later...
  • 1 month later...

I can't seem to get this to run on any port other than 30000. I'm using "host" network and tried to remove and re-add the port as host port 30001/default 30001. (suggested above)

 

(Incidentally, I don't see "container port" even showing up in the port config.)

 

Is there a config file I can edit by hand? Anything else I can do?

 

setupfoundryunraid1.png

configfoundryunraid1.png

Edited by ksignorini
more info and pics
Link to comment
32 minutes ago, ksignorini said:

I can't seem to get this to run on any port other than 30000. I'm using "host" network and tried to remove and re-add the port as host port 30001/default 30001. (suggested above)

 

(Incidentally, I don't see "container port" even showing up in the port config.)

 

Is there a config file I can edit by hand? Anything else I can do?

 

 

 

I worked it out. Had to manually change the settings file for Foundry to target 30001. That's in the "config" folder: options.json. I suppose you could connect at 30000 first, change it in Foundry's settings screen, then adjust the port on the Docker and restart, too.

Link to comment
  • 1 month later...

It's actually all been working great up until now, with 3 instances running.

 

Today I updated the container on one of the 3 instances and now I can't get it to restart. I don't know what things might have changed such that it won't start anymore. The other 2 (older) versions are still running fine.

 

There is nothing in the logs.

 

Where should I start looking for what broke?

 

image.png.ee2a9ca029166a2f0398fa9aaa9d4f9a.png

Link to comment
  • 1 month later...
  • 2 weeks later...

Hi there I am having a weird issue with Foundryvtt docker.
I tried settign it up using a reverse proxy with swag.
I can even connect to the Server but am stuck on the default screen then.
It works fine with a using the direct port and duckdns so I am very confused.
I have attached my foundry swag config and the options config from the foundry server.
Thank you so much for your help and all the work you put into these projects.

foundrscreen.PNG

options.json foundryvtt.subdomain.conf

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.