worker_processes auto; events { worker_connections 1024; } http { include /etc/nginx/mime.types; charset utf-8; types { application/javascript mjs; } access_log /dev/stdout; error_log /dev/stderr; server { listen 8085; server_name localhost; root /nginx-ps5; index index.html; location / { try_files $uri $uri/ =404; } location ~* \.(js|mjs|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|otf|mp4|webm|ogv|ogg|mp3|wav|flac|aac|zip|tar|gz|bz2|rar|7z|json|xml|txt)$ { expires max; log_not_found off; } # ?? Nouvelle route : Proxy vers Flask pour exécution des scripts location /api/run { proxy_pass http://flask-api:5000/run; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Content-Type $http_content_type; proxy_set_header Content-Length $http_content_length; client_max_body_size 10M; } } }