Move nginx configs to their own directory

This commit is contained in:
Ben
2020-04-26 03:11:00 +01:00
parent ba17fa3caa
commit 1632fb6f22
5 changed files with 1 additions and 61 deletions

14
sites/default.conf Normal file
View File

@@ -0,0 +1,14 @@
server {
listen 80 default_server;
server_name _;
location /play {
root /usr/share/nginx/legacy/;
index index.html index.htm;
}
location /media {
root /usr/share/nginx/legacy/;
index index.html index.htm;
}
}

34
sites/legacy.conf Normal file
View File

@@ -0,0 +1,34 @@
server {
server_name play.*;
location / {
root /usr/share/nginx/legacy/play;
index index.html index.htm;
}
location /create_account/create_account.php {
proxy_pass http://dash:3000/create;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /create/activate {
proxy_pass http://localhost:3000/create/activate;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
server_name media.*;
location / {
root /usr/share/nginx/legacy/media;
index index.html index.htm;
}
}

34
sites/vanilla.conf Normal file
View File

@@ -0,0 +1,34 @@
server {
server_name new.*;
location / {
root /usr/share/nginx/vanilla/play;
index index.html index.htm;
}
location ~ ^/avatar/(.*)/cp$ {
proxy_pass http://dash:3000/avatar/$1$is_args$args;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
server_name vanilla.*;
location / {
root /usr/share/nginx/vanilla/media;
index index.html index.htm;
}
location /social/autocomplete/v2/search/suggestions {
proxy_pass http://localhost:3000/autocomplete;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}