summaryrefslogtreecommitdiffstats
path: root/machines/jormungand
diff options
context:
space:
mode:
authorDominique Martinet @ jormungand <asmadeus@codewreck.org>2020-09-02 08:43:58 +0200
committerDominique Martinet @ jormungand <asmadeus@codewreck.org>2020-09-02 08:43:58 +0200
commita2954865218d265c4093d141f099348094a734b1 (patch)
treed95b230f89e4ff7d3f656dc1b8bc5b8492f5449b /machines/jormungand
parent5c999697f8f4ed0c90f31a69f3950c19f67eb0a5 (diff)
cryptpad/nginx config: also redirect to /var/lib/private/cryptpad for /block
Diffstat (limited to 'machines/jormungand')
-rw-r--r--machines/jormungand/nginx.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/machines/jormungand/nginx.nix b/machines/jormungand/nginx.nix
index 6812a93..8e9920a 100644
--- a/machines/jormungand/nginx.nix
+++ b/machines/jormungand/nginx.nix
@@ -155,6 +155,7 @@ let
# these payloads are unlocked via login credentials. They are mutable
# and are thus never cached. They're small enough that it doesn't matter, in any case.
location ^~ /block/ {
+ root /www/cryptpad;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
add_header Access-Control-Allow-Origin "*";
@@ -166,7 +167,8 @@ let
# This block provides an alternative means of loading content
# otherwise only served via websocket. This is solely for debugging purposes,
# and is thus not allowed by default.
- #location ^~ /datastore/ {
+ #location ^~ /datastore/ { # nixos: possibly also blobstage, data, pins, tasks
+ #root /www/cryptpad;
#add_header Cache-Control max-age=0;
#try_files $uri =404;
#}