diff options
-rw-r--r-- | manifests/site.pp | 10 | ||||
-rw-r--r-- | modules/profiles/manifests/gandalf_web.pp | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index ca11ca8..00cf9c1 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -7,6 +7,16 @@ node 'gandalf.adrift.space' { include ::profiles::gandalf_web + nginx::resource::location { '/varselklotet': + server => 'gandalf', + location_alias => '/home/hugo/wiki/varselklotet', + try_files => ['$uri', '$uri/', '=404'], + autoindex => 'on', + ssl => true, + ssl_only => true, + index_files => [], + } + class { 'profiles::transmission': nginx_server => 'gandalf', } diff --git a/modules/profiles/manifests/gandalf_web.pp b/modules/profiles/manifests/gandalf_web.pp index 7aabf2c..e29e360 100644 --- a/modules/profiles/manifests/gandalf_web.pp +++ b/modules/profiles/manifests/gandalf_web.pp @@ -5,6 +5,13 @@ class profiles::gandalf_web { # server_purge => true, package_name => 'nginx', service_config_check => true, + http_cfg_append => { + 'charset' => 'utf-8', + }, + mime_types_preserve_defaults => true, + mime_types => { + 'text/plain' => 'wiki txt', + } } $certname = 'bookmark.gandalf.adrift.space' |