mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Adapted webserver test for web-app-yourls
This commit is contained in:
@@ -29,6 +29,8 @@ server:
|
||||
unsafe-inline: true
|
||||
locations:
|
||||
admin: "/admin/"
|
||||
status_code:
|
||||
landingpage: 301
|
||||
docker:
|
||||
services:
|
||||
database:
|
||||
|
@@ -1,3 +1,3 @@
|
||||
location = / {
|
||||
return 301 {{ yourls_admin_location }};
|
||||
return {{ yourls_landingpage_status_code }} {{ yourls_admin_location }};
|
||||
}
|
@@ -1,14 +1,15 @@
|
||||
# General
|
||||
application_id: "web-app-yourls"
|
||||
database_type: "mariadb"
|
||||
application_id: "web-app-yourls"
|
||||
database_type: "mariadb"
|
||||
|
||||
# Yourls Specific
|
||||
yourls_user: "{{ applications | get_app_conf(application_id, 'users.administrator.username', True) }}"
|
||||
yourls_password: "{{ applications | get_app_conf(application_id, 'credentials.administrator_password', True) }}"
|
||||
yourls_version: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.version', True) }}"
|
||||
yourls_image: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.image', True) }}"
|
||||
yourls_container: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.name', True) }}"
|
||||
yourls_admin_location: "{{ applications | get_app_conf(application_id, 'server.locations.admin', True) }}"
|
||||
yourls_user: "{{ applications | get_app_conf(application_id, 'users.administrator.username', True) }}"
|
||||
yourls_password: "{{ applications | get_app_conf(application_id, 'credentials.administrator_password', True) }}"
|
||||
yourls_version: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.version', True) }}"
|
||||
yourls_image: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.image', True) }}"
|
||||
yourls_container: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.name', True) }}"
|
||||
yourls_admin_location: "{{ applications | get_app_conf(application_id, 'server.locations.admin', True) }}"
|
||||
yourls_landingpage_status_code: "{{ applications | get_app_conf(application_id, 'server.status_code.landingpage', True) }}"
|
||||
|
||||
# Nginx Specific
|
||||
proxy_extra_configuration: "{{ lookup('template', 'redirect.conf.j2') }}"
|
||||
proxy_extra_configuration: "{{ lookup('template', 'redirect.conf.j2') }}"
|
||||
|
Reference in New Issue
Block a user