Arreglado faaso-prod para nombres.ralsina.me
This commit is contained in:
parent
7bdbff02f1
commit
11d6781bd9
@ -1,9 +1,19 @@
|
|||||||
|
map $upstream_http_access_control_allow_origin $allow_origin {
|
||||||
|
'' "*";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
|
|
||||||
server_name faaso-prod.ralsina.me;
|
server_name faaso-prod.ralsina.me;
|
||||||
|
|
||||||
|
add_header 'Access-Control-Allow-Origin' $allow_origin;
|
||||||
|
add_header 'Access-Control-Allow-Headers' '*';
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||||
|
add_header 'Allow' 'POST, GET, OPTIONS';
|
||||||
|
|
||||||
if ($request_method = 'OPTIONS' ) {
|
if ($request_method = 'OPTIONS' ) {
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
@ -11,17 +21,9 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
proxy_pass http://rocky.tail20c16.ts.net:8888;
|
proxy_pass http://rocky.tail20c16.ts.net:8888;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection upgrade;
|
|
||||||
proxy_set_header Accept-Encoding gzip;
|
|
||||||
}
|
|
||||||
error_page 500 502 503 504 /custom_50x.html;
|
|
||||||
location = /custom_50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
internal;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
@ -156,11 +158,6 @@ server {
|
|||||||
proxy_pass http://pinky.tail20c16.ts.net:8082;
|
proxy_pass http://pinky.tail20c16.ts.net:8082;
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
}
|
}
|
||||||
error_page 403 404 500 502 503 504 /custom_50x.html;
|
|
||||||
location = /custom_50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
internal;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
Loading…
Reference in New Issue
Block a user