Merge pull request 'main' (#1) from coop-cloud/collabora:main into main

Reviewed-on: javielico/collabora#1
This commit is contained in:
javielico 2023-05-08 19:35:32 +00:00
commit da1835a3a6
6 changed files with 25 additions and 14 deletions

View File

@ -3,10 +3,12 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone name: deploy to swarm-test.autonomic.zone
steps: steps:
- name: deployment - name: deployment
image: decentral1se/stack-ssh-deploy:latest image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings: settings:
host: swarm-test.autonomic.zone host: swarm-test.autonomic.zone
stack: collabora stack: collabora
networks:
- proxy
generate_secrets: true generate_secrets: true
purge: true purge: true
deploy_key: deploy_key:
@ -16,17 +18,24 @@ steps:
STACK_NAME: collabora STACK_NAME: collabora
LETS_ENCRYPT_ENV: production LETS_ENCRYPT_ENV: production
NGINX_CONF_VERSION: v1 NGINX_CONF_VERSION: v1
LOOLWSD_XML_VERSION: v1 COOLWSD_XML_VERSION: v1
SECRET_ADMIN_PASSWORD_VERSION: v1
trigger: trigger:
branch: branch:
- main - main
--- ---
kind: pipeline kind: pipeline
name: recipe release name: generate recipe catalogue
steps: steps:
- name: release a new version - name: release a new version
image: thecoopcloud/drone-abra:latest image: plugins/downstream
settings: settings:
command: recipe collabora release server: https://build.coopcloud.tech
deploy_key: token:
from_secret: abra_bot_deploy_key from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -4,3 +4,4 @@ LETS_ENCRYPT_ENV=production
NEXTCLOUD_DOMAIN=nextcloud.example.com NEXTCLOUD_DOMAIN=nextcloud.example.com
ADMIN_USERNAME=admin ADMIN_USERNAME=admin
SECRET_ADMIN_PASSWORD_VERSION=v1 SECRET_ADMIN_PASSWORD_VERSION=v1
FRAME_ANCESTORS=

View File

@ -18,9 +18,9 @@
1. Set up Docker Swarm and [`abra`](https://git.autonomic.zone/coop-cloud/abra) 1. Set up Docker Swarm and [`abra`](https://git.autonomic.zone/coop-cloud/abra)
1. Deploy [`coop-cloud/traefik`](https://git.autonomic.zone/coop-cloud/traefik) 1. Deploy [`coop-cloud/traefik`](https://git.autonomic.zone/coop-cloud/traefik)
1. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to 1. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box your Docker swarm box
1. `abra app YOURAPPDOMAIN deploy` 1. `abra app deploy YOURAPPDOMAIN`
## Acknowledgements ## Acknowledgements

View File

@ -1,2 +1,2 @@
export NGINX_CONF_VERSION=v2 export NGINX_CONF_VERSION=v2
export COOLWSD_XML_VERSION=v1 export COOLWSD_XML_VERSION=v2

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
web: web:
image: "nginx:1.22.1" image: "nginx:1.23.3"
environment: environment:
- STACK_NAME - STACK_NAME
- DOMAIN=${DOMAIN} - DOMAIN=${DOMAIN}
@ -24,7 +24,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
app: app:
image: "collabora/code:22.05.8.2.1" image: "collabora/code:22.05.10.1.1"
cap_add: cap_add:
- MKNOD - MKNOD
secrets: secrets:
@ -39,11 +39,12 @@ services:
- DOMAIN=${DOMAIN} - DOMAIN=${DOMAIN}
- DONT_GEN_SSL_CERT=true - DONT_GEN_SSL_CERT=true
- NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN} - NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN}
- FRAME_ANCESTORS
networks: networks:
- internal - internal
deploy: deploy:
labels: labels:
- "coop-cloud.${STACK_NAME}.version=2.1.2+22.05.8.2.1" - "coop-cloud.${STACK_NAME}.version=2.2.0+22.05.10.1.1"
networks: networks:
proxy: proxy:

View File

@ -125,7 +125,7 @@
<host desc="The IPv4 private 10.0.0.0/8 subnet (Podman).">10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host> <host desc="The IPv4 private 10.0.0.0/8 subnet (Podman).">10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
<host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host> <host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
</post_allow> </post_allow>
<frame_ancestors desc="Specify who is allowed to embed the LO Online iframe (coolwsd and WOPI host are always allowed). Separate multiple hosts by space."></frame_ancestors> <frame_ancestors desc="Specify who is allowed to embed the LO Online iframe (coolwsd and WOPI host are always allowed). Separate multiple hosts by space.">{{ env "FRAME_ANCESTORS" }}</frame_ancestors>
<connection_timeout_secs desc="Specifies the connection, send, recv timeout in seconds for connections initiated by coolwsd (such as WOPI connections)." type="int" default="30"></connection_timeout_secs> <connection_timeout_secs desc="Specifies the connection, send, recv timeout in seconds for connections initiated by coolwsd (such as WOPI connections)." type="int" default="30"></connection_timeout_secs>
<!-- this setting radically changes how online works, it should not be used in a production environment --> <!-- this setting radically changes how online works, it should not be used in a production environment -->