Expose pages sites
This commit is contained in:
parent
0a1b541974
commit
ea54d1be69
3 changed files with 20 additions and 0 deletions
|
@ -18,6 +18,14 @@ services:
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/log/gitlab
|
- /var/log/gitlab
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.gitlab-pages.rule=HostRegexp(`{subdomain:[a-z]+}.pages.theorangeone.net`)
|
||||||
|
- traefik.http.routers.gitlab-pages.tls.certresolver=le
|
||||||
|
- traefik.http.routers.gitlab-pages.tls.domains[0].main=pages.theorangeone.net
|
||||||
|
- traefik.http.routers.gitlab-pages.tls.domains[0].sans=*.pages.theorangeone.net
|
||||||
|
- traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.port=8080
|
||||||
|
- traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.scheme=http
|
||||||
|
|
||||||
ssh-server:
|
ssh-server:
|
||||||
image: linuxserver/openssh-server:latest
|
image: linuxserver/openssh-server:latest
|
||||||
|
|
|
@ -38,6 +38,10 @@ certificatesResolvers:
|
||||||
storage: /etc/traefik/acme.json
|
storage: /etc/traefik/acme.json
|
||||||
dnsChallenge:
|
dnsChallenge:
|
||||||
provider: cloudflare
|
provider: cloudflare
|
||||||
|
delayBeforeCheck: 0
|
||||||
|
resolvers:
|
||||||
|
- 1.1.1.1:53
|
||||||
|
- 1.0.0.1:53
|
||||||
|
|
||||||
serversTransport:
|
serversTransport:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
|
|
|
@ -172,3 +172,11 @@ resource "cloudflare_record" "theorangeonenet_gitlab_pages" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "theorangeonenet_gitlab_pages_wildcard" {
|
||||||
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
|
name = "*.pages"
|
||||||
|
value = var.walker_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue