Files
Pinry/docker/nginx/sites-enabled/default

29 lines
577 B
Plaintext
Raw Normal View History

2019-03-19 07:54:41 +08:00
server {
listen 80 default;
server_name _;
access_log /data/nginx-access.log;
error_log /data/nginx-error.log;
2019-03-19 07:54:41 +08:00
root /pinry/pinry-spa/dist/;
2019-03-19 07:54:41 +08:00
location /static {
alias /data/static;
expires max;
access_log off;
}
location /api {
2019-03-19 07:54:41 +08:00
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;
2019-03-19 07:54:41 +08:00
}
}