nginx/safetwitch.conf
Anthony Wang f9748b3ec7
Change /srv/http/pages to /srv/http, don't automatically forward ports 4200-9
The first change doesn't require any manual intervention since /srv/http/pages is now symlinked to /srv/http. The purpose of it is just to make paths shorter, that's all.

I have several reasons for the second change, even though it may have been a useful feature:
- Security: Some programs use those ports by default and you don't want to accidentally expose them to the internet. If you want to run a program on exozyme and view it on your own computer, use SSH port forwarding instead.
- There was some weird DNS resolution problem with that config so I made it only listen to IPv4, which can cause problems since some programs only bind to IPv6.
- If you want to expose a program to the internet, you must use a Unix socket or socat. This feature was useful as a quick-and-dirty option, but socat is also just one command and doesn't require much more effort.
2024-01-20 16:01:08 +00:00

13 lines
213 B
Text

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name safetwitch.exozy.me;
root /srv/http/safetwitch;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}