forked from github/plane
Update nginx.conf
This commit is contained in:
parent
4278383282
commit
336d9fbc86
@ -28,22 +28,19 @@ server {
|
||||
location / {
|
||||
proxy_pass http://planefrontend:3000/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Access-Control-Allow-Headers Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token;
|
||||
proxy_set_header Access-Control-Allow-Methods OPTIONS,POST,GET,PUT;
|
||||
proxy_set_header Access-Control-Allow-Credentials true;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header X-Requested-With *;
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass http://planebackend:8000/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Content-Type application/json;
|
||||
proxy_set_header Access-Control-Allow-Headers Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token;
|
||||
proxy_set_header Access-Control-Allow-Methods OPTIONS,POST,GET,PUT;
|
||||
proxy_set_header Access-Control-Allow-Credentials true;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header X-Requested-With *;
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT';
|
||||
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
|
Loading…
Reference in New Issue
Block a user