Added apache config for munin and gitea; removed nginx config from gitea

This commit is contained in:
2026-04-07 21:22:18 -04:00
parent 98ccd874c0
commit 793a471acf
7 changed files with 65 additions and 3 deletions

View File

@@ -9,6 +9,21 @@ packages_common:
- 'wget'
- 'zip'
# common apache config
apache_listen_ip: '*'
apache_listen_port: 80
# merge apache config arrays
apache_mods_enabled: >-
{{
(apache_mods_enabled_gitea | default([]))
+ (apache_mods_enabled_munin | default([]))
}}
apache_vhosts: >-
{{
(apache_vhosts_gitea | default([]))
+ (apache_vhosts_munin | default([]))
}}
munin_node_allowed_ips:
- '^10\.7\.10\.95$'
- '^127\.0\.0\.1$'

View File

@@ -16,6 +16,20 @@ gitea_require_signin: False
gitea_enable_push_create_org: True
gitea_enable_push_create_user: True
# Apache reverse proxy config
apache_mods_enabled_gitea:
- proxy
- proxy_http
- rewrite
- headers
apache_vhosts_gitea:
- servername: git.metaunix.net
documentroot: /var/www/html
extra_parameters: |
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
# Nginx reverse proxy config
nginx_worker_processes: "{{ ansible_processor_vcpus|default(ansible_processor_count) }}"
nginx_worker_connections: '1024'

View File

@@ -1,5 +1,27 @@
---
# Apache frontend configs
apache_mods_enabled_munin:
- proxy
- proxy_http
- cgi
- rewrite
- headers
apache_vhosts_munin:
- servername: munin.metaunix.net
documentroot: /var/cache/munin/www
extra_parameters: |
ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
<Directory "/usr/lib/munin/cgi">
Options ExecCGI
Require all granted
</Directory>
<Directory "/var/cache/munin/www">
Require all granted
</Directory>
munin_local_conf_remove: True
munin_html_strategy: 'cgi'
munin_graph_strategy: 'cgi'