Replace onlyoffice with collabora

This commit is contained in:
Jake Howard 2020-06-07 21:09:02 +01:00
parent 0724ae9238
commit e54ec1312c
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 11 additions and 19 deletions

View file

@ -54,16 +54,16 @@ services:
volumes: volumes:
- ./redis:/data - ./redis:/data
onlyoffice: collabora:
image: onlyoffice/documentserver image: collabora/code:latest
container_name: onlyoffice container_name: collabora
restart: unless-stopped restart: unless-stopped
cap_add:
- MKNOD
environment: environment:
- JWT_ENABLED=true - "domain=intersect\\.jakehoward\\.tech"
- JWT_SECRET={{ nextcloud.onlyoffice_jwt_secret }}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.onlyoffice.rule=Host(`onlyoffice.jakehoward.tech`)" - "traefik.http.routers.collabora.rule=Host(`collabora.jakehoward.tech`)"
- "traefik.http.routers.onlyoffice.tls.certresolver=le" - "traefik.http.routers.collabora.tls.certresolver=le"
- "traefik.http.routers.onlyoffice.middlewares=oo-header" - "traefik.http.services.collabora-nextcloud.loadbalancer.server.scheme=https"
- "traefik.http.middlewares.oo-header.headers.customRequestHeaders.X-Forwarded-Proto=https"

View file

@ -1,12 +1,4 @@
nextcloud: nextcloud:
onlyoffice_jwt_secret: !vault |
$ANSIBLE_VAULT;1.1;AES256
62303266376363626466323834663133366565393165373435636663663665306334666434313233
6539396130326335653663646430613939323535616536340a363766386361616431353665636531
30303930373864333836363565303165613663613938356133616363396231376463623839383765
6563363263363039320a386134373931363733393636343539393133376463643962396231646565
32366533633564376561373534363662393361656563633230646439653361663836653339666439
3463633137313030363130636663373931623038616365333931
instance_id: !vault | instance_id: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
30343838333336366638343832633063343135393262336238633632333962656236656666343930 30343838333336366638343832633063343135393262336238633632333962656236656666343930

View file

@ -92,9 +92,9 @@ resource "cloudflare_record" "jakehowardtech_pihole" {
ttl = 1 ttl = 1
} }
resource "cloudflare_record" "jakehowardtech_onlyoffice" { resource "cloudflare_record" "jakehowardtech_collabora" {
zone_id = cloudflare_zone.jakehowardtech.id zone_id = cloudflare_zone.jakehowardtech.id
name = "onlyoffice" name = "collabora"
value = vultr_server.casey.main_ip value = vultr_server.casey.main_ip
type = "A" type = "A"
ttl = 1 ttl = 1