halfapi/conf/nginx/api

21 lines
399 B
Plaintext

server {
listen 8080;
client_max_body_size 4G;
server_name api.lirmm.fr;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://uvicorn;
}
}
upstream uvicorn {
server unix:/var/lib/api/lirmm_api.sock;
}