mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Activated redirect for yourls homepage to admin pannel
This commit is contained in:
parent
7f53cc3a12
commit
051e4accd6
@ -5,7 +5,7 @@ oauth2_proxy:
|
||||
- "/roles/web-app-yourls-administrator"
|
||||
acl:
|
||||
blacklist:
|
||||
- "/admin/" # Protects the admin area
|
||||
- "<< defaults_applications[web-app-yourls].server.locations.admin >>" # Protects the admin area
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
@ -27,6 +27,8 @@ server:
|
||||
unsafe-inline: true
|
||||
script-src:
|
||||
unsafe-inline: true
|
||||
locations:
|
||||
admin: "/admin/"
|
||||
docker:
|
||||
services:
|
||||
database:
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
application:
|
||||
{% set container_port = 80 %}
|
||||
{% set container_healthcheck = 'http://127.0.0.1/admin/' %}
|
||||
{% set container_healthcheck = 'http://127.0.0.1' ~ yourls_admin_location %}
|
||||
image: "{{ yourls_image }}:{{ yourls_version }}"
|
||||
container_name: "{{ yourls_container }}"
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
|
3
roles/web-app-yourls/templates/redirect.conf.j2
Normal file
3
roles/web-app-yourls/templates/redirect.conf.j2
Normal file
@ -0,0 +1,3 @@
|
||||
location = / {
|
||||
return 301 {{ yourls_admin_location }};
|
||||
}
|
@ -1,7 +1,14 @@
|
||||
application_id: "web-app-yourls"
|
||||
database_type: "mariadb"
|
||||
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) }}"
|
||||
# General
|
||||
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) }}"
|
||||
|
||||
# Nginx Specific
|
||||
proxy_extra_configuration: "{{ lookup('template', 'redirect.conf.j2') }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user