mirror of
https://git.anonymousland.org/anonymousland/infrastructure.git
synced 2024-07-01 03:21:15 +00:00
Host our site using nginx
This commit is contained in:
parent
1d19bcf533
commit
b75c6cfe2c
|
@ -14,20 +14,12 @@ server {
|
|||
rewrite /.well-known/matrix/(.*) /$1 break;
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app site;
|
||||
set $upstream_port 4000;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
# location / {
|
||||
# root /config/www;
|
||||
# index index.html;
|
||||
# }
|
||||
location / {
|
||||
root /config/www;
|
||||
index index.html;
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user