summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-22 18:27:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-22 18:27:49 +0200
commit693afec750664829949ae934d66db7d2b3a4e0d0 (patch)
tree6361a2a96406d0e32fc0c2164915f23d0ed14c16
parentprofiles::dhcpd dnsupdatekey only if possible. (diff)
downloadprofiles-693afec750664829949ae934d66db7d2b3a4e0d0.tar.gz
profiles-693afec750664829949ae934d66db7d2b3a4e0d0.tar.xz
Add cors headers to shiori.
-rw-r--r--manifests/shiori.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/shiori.pp b/manifests/shiori.pp
index fb5531e..3e22768 100644
--- a/manifests/shiori.pp
+++ b/manifests/shiori.pp
@@ -38,6 +38,7 @@ class profiles::shiori (
error_log => absent,
}
+
nginx::resource::location { 'shiori /':
location => '/',
proxy => "http://[::]:$port",
@@ -45,5 +46,8 @@ class profiles::shiori (
ssl => true,
ssl_only => true,
server => $server_name,
+ add_header => {
+ 'Access-Control-Allow-Origin' => 'https://lysator.liu.se',
+ }
}
}