feat(collabora): release collabora
deployment note: - link to nextcloud - document opening is verified (including korean fonts)
This commit is contained in:
@@ -156,6 +156,13 @@ services:
|
||||
http: "8002"
|
||||
redis: "6382"
|
||||
subuid: "100032"
|
||||
collabora:
|
||||
domain:
|
||||
public: "collabora"
|
||||
internal: "collabora.app"
|
||||
ports:
|
||||
http: "9980"
|
||||
subuid: "101000"
|
||||
|
||||
version:
|
||||
packages:
|
||||
@@ -193,3 +200,4 @@ version:
|
||||
manticore: "25.0.0"
|
||||
affine: "0.26.3"
|
||||
nextcloud: "33.0.3"
|
||||
collabora: "25.04.9.4.1"
|
||||
|
||||
@@ -233,6 +233,13 @@
|
||||
tags: ["site", "nextcloud"]
|
||||
tags: ["site", "nextcloud"]
|
||||
|
||||
- name: Set collabora
|
||||
ansible.builtin.include_role:
|
||||
name: "app"
|
||||
tasks_from: "services/set_collabora"
|
||||
apply:
|
||||
tags: ["site", "collabora"]
|
||||
tags: ["site", "collabora"]
|
||||
|
||||
- name: Flush handlers right now
|
||||
ansible.builtin.meta: "flush_handlers"
|
||||
|
||||
@@ -111,3 +111,14 @@
|
||||
changed_when: false
|
||||
listen: "notification_restart_nextcloud"
|
||||
ignore_errors: true # noqa: ignore-errors
|
||||
|
||||
- name: Restart collabora
|
||||
ansible.builtin.systemd:
|
||||
name: "collabora.service"
|
||||
state: "restarted"
|
||||
enabled: true
|
||||
scope: "user"
|
||||
daemon_reload: true
|
||||
changed_when: false
|
||||
listen: "notification_restart_collabora"
|
||||
ignore_errors: true # noqa: ignore-errors
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Deploy container file
|
||||
ansible.builtin.template:
|
||||
src: "{{ hostvars['console']['node']['config_path'] }}/services/containers/app/collabora/collabora.container.j2"
|
||||
dest: "{{ node['home_path'] }}/.config/containers/systemd/collabora.container"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "svadmins"
|
||||
mode: "0644"
|
||||
notify: "notification_restart_collabora"
|
||||
|
||||
- name: Enable collabora.service
|
||||
ansible.builtin.systemd:
|
||||
name: "collabora.service"
|
||||
state: "started"
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
scope: "user"
|
||||
@@ -0,0 +1,25 @@
|
||||
[Quadlet]
|
||||
DefaultDependencies=false
|
||||
|
||||
[Unit]
|
||||
Description=Collabora Online
|
||||
|
||||
[Container]
|
||||
Image=docker.io/collabora/code:{{ version['containers']['collabora'] }}
|
||||
ContainerName=collabora
|
||||
HostName=collabora
|
||||
|
||||
PublishPort={{ services['collabora']['ports']['http'] }}:9980/tcp
|
||||
|
||||
Environment="TZ=Asia/Seoul"
|
||||
Environment="aliasgroup1=https://{{ services['nextcloud']['domain']['public'] }}.{{ domain['public'] }}"
|
||||
# Environment="aliasgroup2=other_server_FQDN"
|
||||
Environment="extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:server_name={{ services['collabora']['domain']['public'] }}.{{ domain['public'] }} --o:admin_console.enable=false"
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
TimeoutStopSec=120
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -83,3 +83,9 @@
|
||||
header_up Host {http.request.header.X-Forwarded-Host}
|
||||
}
|
||||
}
|
||||
{{ services['collabora']['domain']['internal'] }}.{{ domain['internal'] }} {
|
||||
import private_tls
|
||||
reverse_proxy host.containers.internal:{{ services['collabora']['ports']['http'] }} {
|
||||
header_up Host {http.request.header.X-Forwarded-Host}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,6 +145,15 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
{{ services['collabora']['domain']['public'] }}.{{ domain['public'] }} {
|
||||
import crowdsec_log
|
||||
route {
|
||||
crowdsec
|
||||
reverse_proxy https://{{services['collabora']['domain']['internal'] }}.{{ domain['internal'] }} {
|
||||
header_up Host {http.reverse_proxy.upstream.host}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Internal domain
|
||||
{{ node['name'] }}.{{ domain['internal'] }} {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# Collabora office
|
||||
|
||||
## Prerequisite
|
||||
|
||||
- Nothing
|
||||
|
||||
## Configuration
|
||||
|
||||
- Admin page is disabled by Environment options
|
||||
- `admin_console.enable=false`
|
||||
|
||||
### Link to nextcloud
|
||||
|
||||
- https://nextcloud.ilnmors.com
|
||||
- login with admin account
|
||||
|
||||
- Profile: Apps: Nextcloud Office
|
||||
- Check installation and enable
|
||||
|
||||
- Profile: Administration Settings: Nextcloud Office: Your own server
|
||||
- http://host.containers.internal:9980 (collabora container port)
|
||||
- Public FQDN is set automatically
|
||||
- save
|
||||
|
||||
- Files
|
||||
- Verify document opening (verified)
|
||||
- The basic font `Noto Sans KR` exists
|
||||
- Korean is presented very well
|
||||
@@ -123,7 +123,7 @@
|
||||
- [x] OpenCloud
|
||||
- [x] affine \(Notion substitution\)
|
||||
- [x] Nextcloud \(Use nextcloud as CalDAV and CardDav, kanban and todo\)
|
||||
- [ ] Collabora office
|
||||
- [x] Collabora office \(Link to Nextcloud, it works well\)
|
||||
- WriteFreely
|
||||
- MediaCMS
|
||||
- Funkwhale
|
||||
|
||||
Reference in New Issue
Block a user