This repository has been archived on 2021-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-23 04:52:49 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name _;
|
|
|
|
client_max_body_size 5M;
|
|
|
|
|
2019-03-26 05:01:12 +01:00
|
|
|
location ~ ^/(api|django-static|admin) {
|
2019-03-23 05:22:18 +01:00
|
|
|
proxy_pass http://perktree-backend;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
}
|
|
|
|
|
2019-03-23 04:52:49 +01:00
|
|
|
location / {
|
|
|
|
root /app;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|