Put GitLab on a real domain
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
traefik_provider_jellyfin: false
|
||||
traefik_provider_homeassistant: false
|
||||
traefik_provider_grafana: false
|
||||
traefik_provider_false: false
|
||||
|
||||
with_traefik_pages: false
|
||||
with_fail2ban: false
|
||||
|
12
ansible/roles/traefik/files/file-provider-gitlab.yml
Normal file
12
ansible/roles/traefik/files/file-provider-gitlab.yml
Normal file
@ -0,0 +1,12 @@
|
||||
http:
|
||||
routers:
|
||||
router-gitlab:
|
||||
rule: Host(`code.theorangeone.net`)
|
||||
service: service-gitlab
|
||||
tls:
|
||||
certResolver: le
|
||||
services:
|
||||
service-gitlab:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: https://{{ pve_hosts.gitlab.ip }}
|
@ -78,6 +78,16 @@
|
||||
when: traefik_provider_grafana
|
||||
become: true
|
||||
|
||||
- name: Install gitlab provider
|
||||
template:
|
||||
src: files/file-provider-gitlab.yml
|
||||
dest: /opt/traefik/traefik/conf/gitlab.yml
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
notify: restart traefik
|
||||
when: traefik_provider_gitlab
|
||||
become: true
|
||||
|
||||
- name: logrotate config
|
||||
template:
|
||||
src: files/logrotate.conf
|
||||
|
Reference in New Issue
Block a user