aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-09-30 00:27:40 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-09-30 00:37:47 +0200
commitcb3f528990439b158780f328e2e1180528dd6855 (patch)
tree8ab754938c099771d7c0f664da1b29c85ebfae81 /modules/private/websites
parent2e573da3e091144d7d6f8c72021a8602fb71d61f (diff)
downloadNix-cb3f528990439b158780f328e2e1180528dd6855.tar.gz
Nix-cb3f528990439b158780f328e2e1180528dd6855.tar.zst
Nix-cb3f528990439b158780f328e2e1180528dd6855.zip
Fix Shaarli rest API
Diffstat (limited to 'modules/private/websites')
-rw-r--r--modules/private/websites/tools/tools/shaarli.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/private/websites/tools/tools/shaarli.nix b/modules/private/websites/tools/tools/shaarli.nix
index da8f734..d11f525 100644
--- a/modules/private/websites/tools/tools/shaarli.nix
+++ b/modules/private/websites/tools/tools/shaarli.nix
@@ -22,6 +22,11 @@ in rec {
22 Alias /Shaarli "${root}" 22 Alias /Shaarli "${root}"
23 23
24 Include /var/secrets/webapps/tools-shaarli 24 Include /var/secrets/webapps/tools-shaarli
25 <Location /Shaarli>
26 Header set Access-Control-Allow-Origin "*"
27 Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
28 Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization, Client-Security-Token, Accept-Encoding"
29 </Location>
25 <Directory "${root}"> 30 <Directory "${root}">
26 DirectoryIndex index.php index.htm index.html 31 DirectoryIndex index.php index.htm index.html
27 Options Indexes FollowSymLinks MultiViews Includes 32 Options Indexes FollowSymLinks MultiViews Includes