app.conf 459 B

1234567891011121314151617181920
  1. server {
  2. listen 80;
  3. charset utf-8;
  4. access_log off;
  5. location / {
  6. proxy_pass http://app:8080;
  7. proxy_set_header Host $host:$server_port;
  8. proxy_set_header X-Forwarded-Host $server_name;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. }
  12. location /static {
  13. access_log off;
  14. expires 30d;
  15. alias /app/static;
  16. }
  17. }