mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
33 lines
675 B
Plaintext
33 lines
675 B
Plaintext
server {
|
|
listen 80 default;
|
|
server_name _;
|
|
|
|
access_log /srv/www/pinry/logs/access.log;
|
|
error_log /srv/www/pinry/logs/error.log;
|
|
|
|
location /media {
|
|
alias /data/static/media;
|
|
expires max;
|
|
access_log off;
|
|
}
|
|
|
|
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 / {
|
|
root /srv/www/pinry/pinry-spa/dist/;
|
|
access_log off;
|
|
}
|
|
}
|