2024-11-11 20:45:16 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2024-11-13 19:53:49 +01:00
|
|
|
server_name jetsearch.com;
|
2024-11-13 18:40:36 +01:00
|
|
|
|
2024-11-15 16:47:17 +01:00
|
|
|
return 301 https://www.jetsearch.com$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name www.jetsearch.com;
|
|
|
|
|
|
|
|
return 301 https://www.jetsearch.com$request_uri;
|
2024-11-13 18:40:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
2024-11-13 19:53:49 +01:00
|
|
|
server_name jetsearch.com;
|
2024-11-13 18:40:36 +01:00
|
|
|
|
2024-11-13 20:42:00 +01:00
|
|
|
ssl_certificate /etc/ssl/certs/jet-search.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/jet-search.key;
|
2024-11-11 20:45:16 +01:00
|
|
|
|
2024-11-15 16:47:17 +01:00
|
|
|
return 301 https://www.jetsearch.com$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name www.jetsearch.com;
|
|
|
|
|
|
|
|
ssl_certificate /etc/ssl/certs/jet-search.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/jet-search.key;
|
|
|
|
|
2024-11-11 20:45:16 +01:00
|
|
|
location / {
|
|
|
|
proxy_pass http://127.0.0.1:5000;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2024-11-13 18:40:36 +01:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2024-11-11 20:45:16 +01:00
|
|
|
}
|
|
|
|
}
|