ssl support
This commit is contained in:
parent
dcb2120c66
commit
9487c231a5
2 changed files with 16 additions and 1 deletions
14
nginx
14
nginx
|
@ -1,10 +1,22 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
server_name jetsearch.com www.jetsearch.com;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name jetsearch.com www.jetsearch.com;
|
||||
|
||||
ssl_certificate /path/to/your/certificate.crt;
|
||||
ssl_certificate_key /path/to/your/private.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1: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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue