|
|
|
@ -3,11 +3,22 @@
|
|
|
|
gitea_labels: [
|
|
|
|
gitea_labels: [
|
|
|
|
'"traefik.enable=true"',
|
|
|
|
'"traefik.enable=true"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.service={{ gitea_id }}"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.service={{ gitea_id }}"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.rule=Host(`{{ gitea_base_url }}`)"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.rule=Host(`{{ gitea_base_url }}`) && !Path(`/metrics`)"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.entrypoints=websecure"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.entrypoints=websecure"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.tls=true"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.tls=true"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.tls.certresolver=letsencrypt"',
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}.tls.certresolver=letsencrypt"',
|
|
|
|
'"traefik.http.services.{{ gitea_id }}.loadbalancer.server.port={{ service_port }}"',
|
|
|
|
'"traefik.http.services.{{ gitea_id }}.loadbalancer.server.port={{ service_port }}"',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.service={{ gitea_id }}-admin"',
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.rule=Host(`{{ connect_base_url }}`) && Path(`/metrics`)"',
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.entrypoints=admin-service"',
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.tls=true"',
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.tls.certresolver=letsencrypt"',
|
|
|
|
|
|
|
|
'"traefik.http.routers.{{ gitea_id }}-admin.middlewares={{ gitea_id }}-admin-cors"',
|
|
|
|
|
|
|
|
'"traefik.http.middlewares.{{ gitea_id }}-admin-cors.headers.accesscontrolallowmethods=GET,OPTIONS"',
|
|
|
|
|
|
|
|
'"traefik.http.middlewares.{{ gitea_id }}-admin-cors.headers.accesscontrolalloworigin=*"',
|
|
|
|
|
|
|
|
'"traefik.http.middlewares.{{ gitea_id }}-admin-cors.headers.accesscontrolallowheaders=SMA_USER"',
|
|
|
|
|
|
|
|
'"traefik.http.services.{{ gitea_id }}-admin.loadbalancer.server.port={{ management_port }}"',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
gitea_environment: [
|
|
|
|
gitea_environment: [
|
|
|
|
|