MarkTriumphant

Foundry hosting settings

Mar 9th, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. mysite.com.conf
  2. ===============
  3.  
  4. # First Server
  5. server {
  6.  
  7. # Enter your fully qualified domain name
  8. server_name m.mysite.com;
  9.  
  10. # Listen on port 80 without SSL certificates
  11. listen 80;
  12.  
  13. # Sets the Max Upload size to 300 MB
  14. client_max_body_size 300M;
  15.  
  16. # Proxy Requests to Foundry VTT
  17. location / {
  18.  
  19. # Set proxy headers
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_set_header X-Forwarded-Proto $scheme;
  23.  
  24. # These are important to support WebSockets
  25. proxy_set_header Upgrade $http_upgrade;
  26. proxy_set_header Connection "Upgrade";
  27.  
  28. # Make sure to set your Foundry VTT port number
  29. proxy_pass http://localhost:30001;
  30. }
  31. }
  32.  
  33. # Second Server
  34. server {
  35.  
  36. # Enter your fully qualified domain name
  37. server_name r.mysite.com;
  38.  
  39. # Listen on port 80 without SSL certificates
  40. listen 80;
  41.  
  42. # Sets the Max Upload size to 300 MB
  43. client_max_body_size 300M;
  44.  
  45. # Proxy Requests to Foundry VTT
  46. location / {
  47.  
  48. # Set proxy headers
  49. proxy_set_header Host $host;
  50. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  51. proxy_set_header X-Forwarded-Proto $scheme;
  52.  
  53. # These are important to support WebSockets
  54. proxy_set_header Upgrade $http_upgrade;
  55. proxy_set_header Connection "Upgrade";
  56.  
  57. # Make sure to set your Foundry VTT port number
  58. proxy_pass http://localhost:30000;
  59. }
  60. }
  61.  
  62. options.json for the one that does work
  63. =======================================
  64.  
  65. {
  66. "port": 30001,
  67. "upnp": true,
  68. "fullscreen": false,
  69. "hostname": "m.mysite.com",
  70. "routePrefix": null,
  71. "sslCert": null,
  72. "sslKey": null,
  73. "awsConfig": null,
  74. "dataPath": "/home/foundry/foundrydatam",
  75. "proxySSL": false,
  76. "proxyPort": 80,
  77. "minifyStaticFiles": true,
  78. "updateChannel": "release",
  79. "language": "en.core",
  80. "world": null
  81. }
  82.  
  83. options.json for the one that fails
  84. ===================================
  85. {
  86. "port": 30000,
  87. "upnp": true,
  88. "fullscreen": false,
  89. "hostname": "r.mysite.com",
  90. "routePrefix": null,
  91. "sslCert": null,
  92. "sslKey": null,
  93. "awsConfig": null,
  94. "dataPath": "/home/foundry/foundrydatar",
  95. "proxySSL": false,
  96. "proxyPort": 80,
  97. "minifyStaticFiles": true,
  98. "updateChannel": "release",
  99. "language": "en.core",
  100. "world": null
  101. }
  102.  
Advertisement
Add Comment
Please, Sign In to add comment