Files
Pinry/docker/nginx/sites-enabled/default
2020-04-24 16:16:18 +08:00

37 lines
804 B
Plaintext

server {
listen 80 default;
server_name _;
access_log /data/nginx-access.log;
error_log /data/nginx-error.log;
root /pinry/pinry-spa/dist/;
location /static {
alias /data/static;
expires max;
access_log off;
}
location /api {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://localhost:8000;
break;
}
location /admin {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://localhost:8000;
break;
}
location / {
root /pinry/pinry-spa/dist/;
access_log off;
}
}