Selaa lähdekoodia

adjusted jwt service ports for traefik

element-call-integration
wjbeckett 1 vuosi sitten
vanhempi
commit
9864996aad
3 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. +1
    -1
      roles/custom/matrix-jwt-service/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-jwt-service/templates/labels.j2
  3. +3
    -1
      roles/custom/matrix-jwt-service/templates/systemd/matrix-jwt-service.service.j2

+ 1
- 1
roles/custom/matrix-jwt-service/defaults/main.yml Näytä tiedosto

@@ -7,7 +7,7 @@ matrix_jwt_service_base_path: "{{ matrix_base_data_path }}/jwt-service"

# Docker network configuration
matrix_jwt_service_container_network: ''
matrix_jwt_service_container_http_host_bind_port: '8881'
matrix_jwt_service_container_http_host_bind_port: ''
matrix_jwt_service_container_additional_networks: [] # No additional networks by default

# Docker images


+ 1
- 1
roles/custom/matrix-jwt-service/templates/labels.j2 Näytä tiedosto

@@ -6,7 +6,7 @@ traefik.enable=true
traefik.docker.network={{ matrix_jwt_service_container_labels_traefik_docker_network }}
{% endif %}

traefik.http.services.matrix-jwt-service.loadbalancer.server.port=8881
traefik.http.services.matrix-jwt-service.loadbalancer.server.port=8080

{% set middlewares = [] %}



+ 3
- 1
roles/custom/matrix-jwt-service/templates/systemd/matrix-jwt-service.service.j2 Näytä tiedosto

@@ -16,7 +16,9 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \
--network={{ matrix_jwt_service_container_network }} \
-p {{ matrix_jwt_service_port }}:8080 \
{% if matrix_jwt_service_container_http_host_bind_port %}
-p {{ matrix_jwt_service_container_http_host_bind_port }}:8080 \
{% endif %}
--env-file={{ matrix_jwt_service_base_path }}/env \
--label-file={{ matrix_jwt_service_base_path }}/labels \
{{ matrix_jwt_service_image }}


Ladataan…
Peruuta
Tallenna