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.
perktree/nginx.conf

19 lines
355 B
Nginx Configuration File

server {
listen 80;
server_name _;
client_max_body_size 5M;
location ~ ^/(api|django-static|admin) {
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;
}
location / {
root /app;
try_files $uri $uri/ /index.html;
}
}