Skip to content
Snippets Groups Projects
Commit bd96685b authored by Henrik Henriksson's avatar Henrik Henriksson
Browse files

Add directory listing for media files

parent 7c3c1577
Branches
Tags
No related merge requests found
...@@ -74,6 +74,22 @@ class arkivet { ...@@ -74,6 +74,22 @@ class arkivet {
}, },
} }
::nginx::resource::location { 'arkivet-media-directory-listing':
ensure => present,
location => '/arkivet/filer/media/',
server => 'insidan.holgerspexet.se',
ssl => true,
ssl_only => true,
index_files => ['nogenerics.go'], # Needs to be filled with something -.-
autoindex => 'on',
location_cfg_append => {
auth_request => '/api/v3/users/me',
error_page => '401 = /login?back_url=https%3A%2F%2Finsidan.holgerspexet.se%2Farkivet%2Ffiler%2F',
alias => '/storage/media/',
},
}
::nginx::resource::location { 'arkivet-directory-listing': ::nginx::resource::location { 'arkivet-directory-listing':
ensure => present, ensure => present,
location => '/arkivet/filer/', location => '/arkivet/filer/',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment