forked from github/plane
.
This commit is contained in:
parent
2a19ea253f
commit
6bb7ae5b55
@ -1,7 +1,7 @@
|
||||
SECRET_KEY="<-- django secret -->"
|
||||
DJANGO_SETTINGS_MODULE="plane.settings.production"
|
||||
# Database
|
||||
DATABASE_URL=postgres://plane:plane@plane-db-1:5432/plane
|
||||
DATABASE_URL=postgres://plane:plane@db:5432/plane
|
||||
# Cache
|
||||
REDIS_URL=redis://redis:6379/
|
||||
# SMPT
|
||||
|
@ -29,10 +29,21 @@ server {
|
||||
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;
|
||||
proxy_set_header Access-Control-Allow-Credentials true;
|
||||
proxy_set_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header X-Requested-With *;
|
||||
}
|
||||
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;
|
||||
proxy_set_header Access-Control-Allow-Credentials true;
|
||||
proxy_set_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header X-Requested-With *;
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
|
Loading…
Reference in New Issue
Block a user