I ran successfully streamlit in docker with nginx but even though runOnsave is activated in streamlit conf, my app does not update.
Here is my nginx config :
server {
listen 80 default_server;
location /test/ {
auth_request /auth;
proxy_pass http://localhost:8501/;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
location ^~ /test/static {
proxy_pass http://localhost:{{metadata['port']}}/static/;
}
location ^~ /test/healthz/ {
proxy_pass http://localhost:{{metadata['port']}}/healthz/;
}
location ^~ /test/vendor/ {
proxy_pass http://localhost:{{metadata['port']}}/vendor/;
}
location = /auth {
proxy_pass http://localhost:8000/;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Authorization $http_authorization;
}
}