mirror of
https://github.com/solero/wand.git
synced 2025-10-19 05:28:03 +00:00
Move nginx configs to their own directory
This commit is contained in:
14
sites/default.conf
Normal file
14
sites/default.conf
Normal 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
34
sites/legacy.conf
Normal 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
34
sites/vanilla.conf
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user