-
-
Notifications
You must be signed in to change notification settings - Fork 49
NGINX Reverse Proxy Setup
Mark Metcalfe edited this page Apr 1, 2023
·
3 revisions
If you want to host the Web GUI on an existing NGINX server you have, you can create a reverse proxy location directive in NGINX like so for the web GUI:
server {
server_name example.com;
# ...extra config here
location / {
proxy_pass http://localhost:12345; # Assuming you are hosting it locally, with 12345 set as your web GUI port
# ...any extra proxy settings here
}
}
You can also host it at a subdirectory, so that you can host multiple different services on the same domain:
server {
server_name example.com;
# ...extra config here
location /games/minecraft/ {
proxy_pass http://localhost:12345; # Assuming you are hosting it locally, with 12345 set as your web GUI port
# ...any extra proxy settings here
}
}
Which will make the web GUI accessible from example.com/games/minecraft
so long as you have webSubPath: /games/minecraft
set in sleepingSettings.yml