-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.conf
More file actions
32 lines (27 loc) · 950 Bytes
/
python.conf
File metadata and controls
32 lines (27 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
server {
listen 80;
server_name python.example-domain.local;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://webpython:5000;
# return 301 https://$server_name$request_uri;
}
}
#server {
# listen 443 ssl;
# server_name python.example-domain.local;
# ssl_certificate /etc/nginx/ssl/live/example-domain.local/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/live/example-domain.local/privkey.pem;
# location / {
# proxy_pass http://webpython: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;
# proxy_set_header X-Forwarded-Host $host;
# proxy_set_header X-Forwarded-Port $server_port;
# proxy_set_header X-Forwarded-Server $host;
# }
#}