mirror of
https://git.anonymousland.org/anonymousland/infrastructure.git
synced 2025-08-02 03:36:30 -04:00
Host our site using nginx
This commit is contained in:
parent
1d19bcf533
commit
b75c6cfe2c
1 changed files with 25 additions and 33 deletions
|
@ -17,17 +17,9 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /config/nginx/proxy.conf;
|
root /config/www;
|
||||||
include /config/nginx/resolver.conf;
|
index index.html;
|
||||||
set $upstream_app site;
|
try_files $uri $uri.html $uri/ =404;
|
||||||
set $upstream_port 4000;
|
|
||||||
set $upstream_proto http;
|
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# location / {
|
|
||||||
# root /config/www;
|
|
||||||
# index index.html;
|
|
||||||
# }
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue