diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-22 18:27:49 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-22 18:27:49 +0200 |
commit | 693afec750664829949ae934d66db7d2b3a4e0d0 (patch) | |
tree | 6361a2a96406d0e32fc0c2164915f23d0ed14c16 /manifests/shiori.pp | |
parent | profiles::dhcpd dnsupdatekey only if possible. (diff) | |
download | profiles-693afec750664829949ae934d66db7d2b3a4e0d0.tar.gz profiles-693afec750664829949ae934d66db7d2b3a4e0d0.tar.xz |
Add cors headers to shiori.
Diffstat (limited to 'manifests/shiori.pp')
-rw-r--r-- | manifests/shiori.pp | 4 |
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', + } } } |