mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 19:57:16 +02:00
Refactored server roles for better readability
This commit is contained in:
@@ -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
|
||||
|
@@ -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 }};
|
||||
|
Reference in New Issue
Block a user