aboutsummaryrefslogtreecommitdiff
path: root/ideez_nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'ideez_nginx.conf')
-rw-r--r--ideez_nginx.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/ideez_nginx.conf b/ideez_nginx.conf
new file mode 100644
index 0000000..b22eb58
--- /dev/null
+++ b/ideez_nginx.conf
@@ -0,0 +1,25 @@
+server {
+ server_name ideez.website.com;
+ location / {
+ proxy_pass http://127.0.0.1:15118;
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+
+ listen 443 ssl;
+ ssl_certificate /etc/letsencrypt/live/ideez.website.com/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/ideez.website.com/privkey.pem;
+ include /etc/letsencrypt/options-ssl-nginx.conf;
+ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
+
+}
+
+server {
+ if ($host = ideez.website.com) {
+ return 301 https://$host$request_uri;
+ }
+ server_name ideez.website.com;
+ listen 80;
+ return 404;
+}