forked from exozyme/nginx
Support dynamic web apps for exopages
This commit is contained in:
parent
5168a18734
commit
3326f06088
1 changed files with 16 additions and 0 deletions
16
pages.conf
16
pages.conf
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue