aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/host/templates/etc_rc.conf.j29
-rw-r--r--roles/jails/01_ingress/defaults/main.yml11
-rw-r--r--roles/jails/02_postgres/defaults/main.yml1
3 files changed, 14 insertions, 7 deletions
diff --git a/roles/host/templates/etc_rc.conf.j2 b/roles/host/templates/etc_rc.conf.j2
index 561d472..25c4065 100644
--- a/roles/host/templates/etc_rc.conf.j2
+++ b/roles/host/templates/etc_rc.conf.j2
@@ -35,16 +35,13 @@ syslogd_flags="-s"
jail_enable="YES"
jail_parallel_start="YES"
jail_reverse_stop="YES"
+linux_enable="YES"
clear_tmp_enable="YES"
cleanvar_enable="YES"
auditd_enable="YES"
devd_enable="YES"
{% if is_prod %}
-vm_enable="YES"
-vm_dir="zfs:zroot/vm"
-vm_list="alpine0"
-vm_delay="5"
-kld_list="pf if_wg i915kms fdescfs"
+kld_list="pf if_wg i915kms fdescfs linux64"
{% else %}
-kld_list="pf if_wg"
+kld_list="pf if_wg linux64"
{% endif %}
diff --git a/roles/jails/01_ingress/defaults/main.yml b/roles/jails/01_ingress/defaults/main.yml
index b994e71..0774424 100644
--- a/roles/jails/01_ingress/defaults/main.yml
+++ b/roles/jails/01_ingress/defaults/main.yml
@@ -18,7 +18,7 @@ ingress_routes:
- { host: irc.jan.systems, jail: irc_thelounge, presets: [websocket] }
- { host: paste.jan.systems, jail: paste }
- { host: leolalla.fi, jail: leolalla_fi }
- - { host: immich.jan.systems, ip: 192.168.3.3, port: 2283 }
+ - { host: immich.jan.systems, jail: immich, presets: [large_body_size] }
- { host: plex.jan.systems, jail: plex, port: 32400, presets: [streaming] }
- { host: komga.jan.systems, jail: komga }
- { host: goaccess.jan.systems, jail: goaccess }
@@ -92,3 +92,12 @@ nginx_presets:
- "proxy_buffering off"
- "proxy_read_timeout 3600s"
- "proxy_send_timeout 3600s"
+ large_body_size:
+ - "proxy_http_version 1.1"
+ - 'proxy_set_header Connection "Upgrade"'
+ - "proxy_set_header Upgrade $http_upgrade"
+ - "proxy_read_timeout 1d"
+ - "proxy_send_timeout 1d"
+ - "proxy_buffering off"
+ - "proxy_request_buffering off"
+ - "client_max_body_size 10G"
diff --git a/roles/jails/02_postgres/defaults/main.yml b/roles/jails/02_postgres/defaults/main.yml
index fb70805..b01e2c3 100644
--- a/roles/jails/02_postgres/defaults/main.yml
+++ b/roles/jails/02_postgres/defaults/main.yml
@@ -15,6 +15,7 @@ jail_conf_options:
pkg:
- postgresql18-server
- postgresql18-pgvector
+ - postgresql18-contrib
services:
- postgresql