Host our site using nginx

This commit is contained in:
NebulaOnion 2023-01-26 16:54:51 +00:00
parent 1d19bcf533
commit b75c6cfe2c

View File

@ -1,33 +1,25 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
gzip on;
server_name anonymousland.org;
add_header Onion-Location http://vqajogx2cyooddrtai62pzj4v346kwnfiru2fa2fftemae47rgpeglqd.onion$request_uri;
include /config/nginx/ssl.conf;
location /.well-known/matrix/ {
root /config/well-known/matrix;
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;
# }
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
gzip on;
server_name anonymousland.org;
add_header Onion-Location http://vqajogx2cyooddrtai62pzj4v346kwnfiru2fa2fftemae47rgpeglqd.onion$request_uri;
include /config/nginx/ssl.conf;
location /.well-known/matrix/ {
root /config/well-known/matrix;
rewrite /.well-known/matrix/(.*) /$1 break;
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
location / {
root /config/www;
index index.html;
try_files $uri $uri.html $uri/ =404;
}
}