aboutsummaryrefslogtreecommitdiff
path: root/deploy/ip.mfamily.org.nginx
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/ip.mfamily.org.nginx')
-rw-r--r--deploy/ip.mfamily.org.nginx28
1 files changed, 28 insertions, 0 deletions
diff --git a/deploy/ip.mfamily.org.nginx b/deploy/ip.mfamily.org.nginx
new file mode 100644
index 0000000..08cbeb5
--- /dev/null
+++ b/deploy/ip.mfamily.org.nginx
@@ -0,0 +1,28 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name ip.mfamily.org;
+
+ return 301 https://$host$request_uri;
+}
+
+server {
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ server_name ip.mfamily.org;
+
+ ssl_certificate /etc/letsencrypt/live/ip.mfamily.org/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/ip.mfamily.org/privkey.pem;
+
+ location = / {
+ proxy_pass http://127.0.0.1:8080/;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_pass_request_body off;
+ proxy_set_header Content-Length "";
+ }
+
+ location / {
+ return 404;
+ }
+}