summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 22:15:39 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 22:21:50 +0100
commitc8e9b56cf3b7664e980f312b75c6bfac9b276703 (patch)
tree6a1a2dc13e88fe0b661b550d685e578f03a19051 /data
parentAllow lists in networkd config. (diff)
downloadwebdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.gz
webdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.xz
stuff
Diffstat (limited to '')
-rw-r--r--data/common.yaml30
-rw-r--r--data/nodes/gandalf.adrift.space.yaml51
2 files changed, 81 insertions, 0 deletions
diff --git a/data/common.yaml b/data/common.yaml
new file mode 100644
index 0000000..7f015df
--- /dev/null
+++ b/data/common.yaml
@@ -0,0 +1,30 @@
+certname: "%{fqdn}"
+
+nginx::nginx_servers_defaluts:
+ ssl: true
+ ssl_cert: "/etc/letsencrypt/live/%{certname}/fullchain.pem"
+ ssl_key: "/etc/letsencrypt/live/%{certname}/privkey.pem"
+ use_default_location: false
+ index_files:
+ - index.html
+ - index.htm
+ access_log: absent
+ error_log: absent
+ ssl_redirect: true
+
+nginx::manage_repo: false
+nginx::surver_purge: true
+nginx::service_config_check: true
+nginx::http_format_log: my_format
+nginx::log_formats:
+ nginx_default: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referrer" "$http_user_agent"'
+ my_format: '$remote_addr - $remote_user [$time_local] "$request_method $server_name$request_uri" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
+nginx::nginx_error_log_severity: notice
+nginx::cfg_append:
+ rewrite_log: on
+nginx::server_purge: true
+
+nginx::nginx_locations_defaults:
+ index_files: []
+ ssl: true
+ autoindex: on
diff --git a/data/nodes/gandalf.adrift.space.yaml b/data/nodes/gandalf.adrift.space.yaml
new file mode 100644
index 0000000..2f89cd6
--- /dev/null
+++ b/data/nodes/gandalf.adrift.space.yaml
@@ -0,0 +1,51 @@
+---
+nginx::package_name: nginx-mainline
+nginx::http_cfg_append:
+ 'charset': utf-8
+nginx::mime_types_preserve_defaults: true
+ngnix::mime_types:
+ 'text/plain': 'wiki txt'
+nginx::include_modules_enabled: true
+
+nginx::nginx_servers:
+ "%{facts.hostname}":
+ ipv6_enable: true
+ listen_options: defalut_server
+ ipv6_listen_options: default_server
+ server_name:
+ - _
+ www_root: /var/www/adrift.space
+ "repo.%{fqdn}":
+ ipv6_enable: true,
+ ipv6_listen_options: '',
+ server_name:
+ - "repo.%{fqdn}"
+ ssl_redirect: true,
+ www_root: /usr/net/repo
+ use_default_location: true
+
+nginx::nginx_locations:
+ '/':
+ try_files:
+ - '$uri'
+ - '$uri/'
+ - '=404',
+ ssl_only: true
+ autoindex: on
+ server: "%{fqdn}"
+ '/varselklotet':
+ server: "%{fqdn}"
+ location_alias: /home/hugo/wiki/varselklotet
+
+shiori::port: 8081
+shiori:group_members:
+ - hugo
+shiori::nginx:
+ server_name: "bookmark.${fqdn}"
+ certname: "%{certname}"
+
+profiles::syncthing::enable_for:
+ - hugo
+
+profiles::gandalf_web::certname: "%{certname}"
+profiles::transmission:nginx_server: "%{fqdn}"