mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
This commit is contained in:
32
group_vars/all/05_nginx.yml
Normal file
32
group_vars/all/05_nginx.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# Webserver Configuration
|
||||
|
||||
# Helper
|
||||
_nginx_www_dir: "{{ applications | get_app_conf('svc-prx-openresty','docker.volumes.www') }}"
|
||||
_nginx_dir: "{{ applications | get_app_conf('svc-prx-openresty','docker.volumes.nginx') }}"
|
||||
_nginx_conf_dir: "{{ _nginx_dir }}conf.d/"
|
||||
_nginx_http_dir: "{{ _nginx_conf_dir }}http/"
|
||||
|
||||
## Nginx-Specific Path Configurations
|
||||
NGINX:
|
||||
FILES:
|
||||
CONFIGURATION: "{{ _nginx_dir }}nginx.conf"
|
||||
DIRECTORIES:
|
||||
CONFIGURATION: "{{ _nginx_conf_dir }}" # Configuration directory
|
||||
HTTP:
|
||||
GLOBAL: "{{ _nginx_http_dir }}global/" # Contains global configurations which will be loaded into the http block
|
||||
SERVERS: "{{ _nginx_http_dir }}servers/" # Contains one configuration per domain
|
||||
MAPS: "{{ _nginx_http_dir }}maps/" # Contains mappings
|
||||
STREAMS: "{{ _nginx_conf_dir }}streams/" # Contains streams configuration e.g. for ldaps
|
||||
DATA:
|
||||
WWW: "{{ _nginx_www_dir }}"
|
||||
WELL_KNOWN: "/usr/share/nginx/well-known/" # Path where well-known files are stored
|
||||
HTML: "{{ _nginx_www_dir }}public_html/" # Path where the static homepage files are stored
|
||||
FILES: "{{ _nginx_www_dir }}public_files/" # Path where the web accessable files are stored
|
||||
CDN: "{{ _nginx_www_dir }}public_cdn/" # Contains files which will be accessable via the content delivery network
|
||||
GLOBAL: "{{ _nginx_www_dir }}global/" # Directory containing files which will be globaly accessable, @Todo remove this when css migrated to CDN
|
||||
CACHE:
|
||||
GENERAL: "/tmp/cache_nginx_general/" # Directory which nginx uses to cache general data
|
||||
IMAGE: "/tmp/cache_nginx_image/" # Directory which nginx uses to cache images
|
||||
USER: "http" # Default nginx user in ArchLinux
|
||||
|
||||
# @todo It propably makes sense to distinguish between target and source mount path, so that the config files can be stored in the openresty volumes folder
|
Reference in New Issue
Block a user