mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-11-02 17:26:57 +00:00
builds
This commit is contained in:
22
.build/prod/nginx.conf
Normal file
22
.build/prod/nginx.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name _;
|
||||
access_log /dev/stdout;
|
||||
error_log /dev/stdout info;
|
||||
|
||||
# Serve static files
|
||||
location /static/ {
|
||||
alias /var/www/html/staticfiles/;
|
||||
}
|
||||
|
||||
# Forward requests to Gunicorn
|
||||
location / {
|
||||
proxy_pass http://api:5000;
|
||||
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 X-Forwarded-Proto $scheme;
|
||||
client_max_body_size 6M;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user