From d1806ec07f44b617769bc862048df30b8a3336da Mon Sep 17 00:00:00 2001 From: href Date: Mon, 11 Dec 2017 02:40:19 +0100 Subject: nginx sample config, quickly tested --- installation/pleroma.nginx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'installation') diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 1a6e1d56f..d882908e4 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -1,3 +1,6 @@ +proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g + inactive=720m use_temp_path=off; + server { listen 80; server_name example.tld; @@ -21,6 +24,13 @@ server { location / { proxy_pass http://localhost:4000; } + + location /proxy { + proxy_cache pleroma_media_cache; + proxy_cache_lock on; + proxy_pass http://localhost:4000; + } + include snippets/well-known.conf; -} \ No newline at end of file +} -- cgit v1.2.3 From aceef36e5675253b32b0be4322b055e98a0154e7 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Sun, 14 Jan 2018 10:57:25 +0000 Subject: Correct pleroma.nginx --- installation/pleroma.nginx | 2 -- 1 file changed, 2 deletions(-) (limited to 'installation') diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 4e88a426d..92ed8f32e 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -34,6 +34,4 @@ server { proxy_pass http://localhost:4000; } - include snippets/well-known.conf; - } -- cgit v1.2.3 From 6678fe3217d82da7297215c4de369235e3d4d05d Mon Sep 17 00:00:00 2001 From: eal Date: Tue, 16 Jan 2018 15:48:27 +0200 Subject: Add a Caddyfile. --- installation/Caddyfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 installation/Caddyfile (limited to 'installation') diff --git a/installation/Caddyfile b/installation/Caddyfile new file mode 100644 index 000000000..08d5e6169 --- /dev/null +++ b/installation/Caddyfile @@ -0,0 +1,5 @@ +instance.example.com { # Your instance's domain + proxy / localhost:4000 { + websocket + } +} -- cgit v1.2.3 From 9c0c40cf1e11fb0e59dd675e867e97e6369c7b80 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Fri, 26 Jan 2018 22:58:58 +0000 Subject: Access-Control-Allow-Origin --- installation/pleroma.nginx | 1 + 1 file changed, 1 insertion(+) (limited to 'installation') diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 4e88a426d..58d24f81d 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -22,6 +22,7 @@ server { server_name example.tld; location / { + add_header 'Access-Control-Allow-Origin' '*'; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; -- cgit v1.2.3