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.
 
 
 
 
 
 

29 regels
577 B

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