You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default 675 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80 default;
  3. server_name _;
  4. access_log /srv/www/pinry/logs/access.log;
  5. error_log /srv/www/pinry/logs/error.log;
  6. location /media {
  7. alias /data/static/media;
  8. expires max;
  9. access_log off;
  10. }
  11. location /static {
  12. alias /data/static;
  13. expires max;
  14. access_log off;
  15. }
  16. location /api {
  17. proxy_set_header Host $host;
  18. proxy_set_header X-Real-IP $remote_addr;
  19. proxy_set_header X-Forwarded-For $remote_addr;
  20. proxy_pass http://localhost:8000;
  21. break;
  22. }
  23. location / {
  24. root /srv/www/pinry/pinry-spa/dist/;
  25. access_log off;
  26. }
  27. }