mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-16 00:47:29 +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"
|
- "/roles/web-app-yourls-administrator"
|
||||||
acl:
|
acl:
|
||||||
blacklist:
|
blacklist:
|
||||||
- "/admin/" # Protects the admin area
|
- "<< defaults_applications[web-app-yourls].server.locations.admin >>" # Protects the admin area
|
||||||
features:
|
features:
|
||||||
matomo: true
|
matomo: true
|
||||||
css: true
|
css: true
|
||||||
@ -27,6 +27,8 @@ server:
|
|||||||
unsafe-inline: true
|
unsafe-inline: true
|
||||||
script-src:
|
script-src:
|
||||||
unsafe-inline: true
|
unsafe-inline: true
|
||||||
|
locations:
|
||||||
|
admin: "/admin/"
|
||||||
docker:
|
docker:
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
application:
|
application:
|
||||||
{% set container_port = 80 %}
|
{% 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 }}"
|
image: "{{ yourls_image }}:{{ yourls_version }}"
|
||||||
container_name: "{{ yourls_container }}"
|
container_name: "{{ yourls_container }}"
|
||||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
{% 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"
|
# General
|
||||||
database_type: "mariadb"
|
application_id: "web-app-yourls"
|
||||||
yourls_user: "{{ applications | get_app_conf(application_id, 'users.administrator.username', True) }}"
|
database_type: "mariadb"
|
||||||
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 Specific
|
||||||
yourls_image: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.image', True) }}"
|
yourls_user: "{{ applications | get_app_conf(application_id, 'users.administrator.username', True) }}"
|
||||||
yourls_container: "{{ applications | get_app_conf(application_id, 'docker.services.yourls.name', 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