nginx acp stuff

This commit is contained in:
ntr
2019-08-14 17:40:01 +10:00
parent 6fe9b52d00
commit 8684f32db2
11 changed files with 139 additions and 67 deletions
@@ -1,7 +1,3 @@
upstream mnml_dev {
server 0.0.0.0:41337;
}
error_log /var/log/mnml/nginx.log;
upstream mnml_http {
@@ -21,11 +17,17 @@ map $http_upgrade $connection_upgrade {
# DEV
server {
location / {
root /var/lib/mnml/public/current;
root /var/lib/mnml/public/client;
index index.html;
try_files $uri $uri/ index.html;
}
location /acp {
root /var/lib/mnml/public/acp;
index acp.html;
try_files $uri $uri/ acp.html;
}
location /imgs/ {
root /var/lib/mnml/public/;
try_files $uri $uri/ =404;
@@ -51,25 +53,3 @@ server {
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
# http -> https
server {
server_name mnml.gg;
return 301 https://$host$request_uri;
}
server {
server_name minimal.gg;
return 301 https://mnml.gg$request_uri;
}
server {
server_name cryps.gg;
return 301 https://mnml.gg$request_uri;
}
server {
server_name dev.mnml.gg;
return 301 https://$host$request_uri;
}