Refactored server roles for better readability

This commit is contained in:
2025-09-01 18:08:35 +02:00
parent b7065837df
commit b02d88adc0
77 changed files with 103 additions and 116 deletions

View File

@@ -1,9 +1,9 @@
- name: "include role for {{ application_id }} to receive certs & do modification routines"
include_role:
name: srv-composer
name: sys-util-csp-cert
- name: configure {{ domain }}.conf
template:
src: "templates/peertube.conf.j2"
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domain }}.conf"
notify: restart openresty
dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}"
notify: restart openresty

View File

@@ -1,18 +1,18 @@
server {
server_name {{ domain }};
{% include 'roles/srv-letsencrypt/templates/ssl_header.j2' %}
{% include 'roles/sys-svc-letsencrypt/templates/ssl_header.j2' %}
{% include 'roles/sys-front-inj-all/templates/server.conf.j2'%}
{% include 'roles/srv-proxy-core/templates/headers/content_security_policy.conf.j2' %}
{% include 'roles/sys-svc-proxy/templates/headers/content_security_policy.conf.j2' %}
##
# Application
##
{% set location = "@html" %}
{% include 'roles/srv-proxy-core/templates/location/html.conf.j2' %}
{% include 'roles/sys-svc-proxy/templates/location/html.conf.j2' %}
location / {
try_files /dev/null {{ location }};
@@ -45,7 +45,7 @@ server {
##
{% set location_ws = "@websocket" %}
{% include 'roles/srv-proxy-core/templates/location/ws.conf.j2' %}
{% include 'roles/sys-svc-proxy/templates/location/ws.conf.j2' %}
location /socket.io {
try_files /dev/null {{ location_ws }};