forked from imfing/keras-flask-deploy-webapp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
23 lines (20 loc) · 667 Bytes
/
nginx.conf
File metadata and controls
23 lines (20 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
events { }
http {
server {
ssl_certificate /etc/pki/tls/certs/cert.pem;
ssl_certificate_key /etc/pki/tls/private/key.pem;
listen 443 ssl;
client_max_body_size 15M;
location / {
# Mind to set your Docker Container ip here
proxy_pass http://172.16.239.10: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;
}
}
server {
listen 80 default_server;
return 301 https://$host$request_uri;
}
}