From 96a237b8af24e83c896b8b4ff611bea136067553 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Sat, 23 Oct 2021 04:39:43 +0000 Subject: [PATCH] Add Nginx config for Seafile (not used). --- sea.ionathan.ch | 14 ++++++++++++++ wiki.ert.space | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sea.ionathan.ch diff --git a/sea.ionathan.ch b/sea.ionathan.ch new file mode 100644 index 0000000..20f4db6 --- /dev/null +++ b/sea.ionathan.ch @@ -0,0 +1,14 @@ +server { + server_name sea.ionathan.ch; + listen 80; + listen [::]:80; + client_max_body_size 512M; + add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always; + + location / { + proxy_pass http://localhost:8008; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } +} + diff --git a/wiki.ert.space b/wiki.ert.space index 8d0f7f6..65965b2 100644 --- a/wiki.ert.space +++ b/wiki.ert.space @@ -1,7 +1,7 @@ server { server_name wiki.ert.space; location / { - proxy_pass https://ionchypedia.readthedocs.io:443; + proxy_pass https://github.com/ionathanch/ionathanch/wiki; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }