nginx.conf 514 B

1234567891011121314151617
  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. proxy_pass http://127.0.0.1:__PORT__;
  4. proxy_set_header Host $host;
  5. proxy_set_header X-Real-IP $remote_addr;
  6. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  7. proxy_set_header X-Forwarded-Proto $scheme;
  8. proxy_set_header Ynh-User $http_ynh_user;
  9. proxy_set_header X-Script-Name __PATH__;
  10. proxy_read_timeout 300;
  11. proxy_connect_timeout 300;
  12. client_max_body_size 0;
  13. include conf.d/yunohost_panel.conf.inc;
  14. }