1
0
Fork 0
forked from exozyme/nginx

Support dynamic web apps for exopages

This commit is contained in:
Anthony Wang 2022-04-01 08:04:23 -05:00
parent 5168a18734
commit 3326f06088
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -1,3 +1,19 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ~^(\d)\.exozy\.me;
include conf.d/ssl;
index index.html;
location / {
# Must use 127.0.0.1 here since it's resolved at runtime
# https://serverfault.com/questions/638505/nginx-dynamic-proxy-pass-doesnt-resolve-properly
proxy_pass http://127.0.0.1:420$1;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;