mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 19:57:16 +02:00
Optimized yourls variables and healthcheck
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
application:
|
||||
{% set container_port = 80 %}
|
||||
{% set container_healthcheck = 'http://127.0.0.1' ~ yourls_admin_location %}
|
||||
image: "{{ yourls_image }}:{{ yourls_version }}"
|
||||
container_name: "{{ yourls_container }}"
|
||||
{% set container_healthcheck = YOURLS_ADMIN_LOCATION %}
|
||||
image: "{{ YOURLS_IMAGE }}:{{ YOURLS_VERSION }}"
|
||||
container_name: "{{ YOURLS_CONTAINER }}"
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
ports:
|
||||
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
|
||||
|
@@ -3,7 +3,7 @@ YOURLS_DB_USER: "{{ database_username }}"
|
||||
YOURLS_DB_PASS: "{{ database_password }}"
|
||||
YOURLS_DB_NAME: "{{ database_name }}"
|
||||
YOURLS_SITE: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
|
||||
YOURLS_USER: "{{ yourls_user }}"
|
||||
YOURLS_PASS: "{{ yourls_password }}"
|
||||
YOURLS_USER: "{{ YOURLS_USER }}"
|
||||
YOURLS_PASS: "{{ YOURLS_PASSWORD }}"
|
||||
# The following deactivates the login mask for admins, if the oauth2 proxy is activated
|
||||
YOURLS_PRIVATE: "{{not (applications | get_app_conf(application_id, 'features.oauth2', False))}}"
|
@@ -1,3 +1,3 @@
|
||||
location = / {
|
||||
return {{ yourls_landingpage_status_code }} {{ yourls_admin_location }};
|
||||
return {{ YOURLS_LANDINGPAGE_STATUS_CODE }} {{ YOURLS_ADMIN_LOCATION }};
|
||||
}
|
Reference in New Issue
Block a user