Install Collabora
This commit is contained in:
17
Vagrantfile
vendored
17
Vagrantfile
vendored
@@ -50,14 +50,15 @@ Vagrant.configure("2") do |config|
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
# Example for VirtualBox:
|
||||
#
|
||||
# config.vm.provider "virtualbox" do |vb|
|
||||
# # Display the VirtualBox GUI when booting the machine
|
||||
# vb.gui = true
|
||||
#
|
||||
# # Customize the amount of memory on the VM:
|
||||
# vb.memory = "1024"
|
||||
# end
|
||||
#
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
# Display the VirtualBox GUI when booting the machine
|
||||
# vb.gui = true
|
||||
|
||||
# Customize the amount of memory on the VM:
|
||||
vb.memory = 4096
|
||||
vb.cpus = 2
|
||||
end
|
||||
|
||||
# View the documentation for the provider you are using for more
|
||||
# information on available options.
|
||||
|
||||
|
||||
@@ -66,6 +66,32 @@ services:
|
||||
- db
|
||||
- redis
|
||||
- nginx
|
||||
extra_hosts:
|
||||
- "tower.scarif.local:${LOCAL_IP}"
|
||||
- "office.scarif.local:${LOCAL_IP}"
|
||||
|
||||
collabora:
|
||||
image: collabora/code
|
||||
restart: always
|
||||
cap_add:
|
||||
- MKNOD
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
environment:
|
||||
- DONT_GEN_SSL_CERT="True"
|
||||
- domain=tower.${DOMAIN}
|
||||
- cert_domain=office.${DOMAIN}
|
||||
- server_name=office.${DOMAIN}
|
||||
- username=${COLLABORA_USER}
|
||||
- password=${COLLABORA_PASSWORD}
|
||||
- "extra_params=-o:ssl.enable=false --o:ssl.termination=true"
|
||||
- "dictionaries=de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru ro"
|
||||
networks:
|
||||
- nginx
|
||||
extra_hosts:
|
||||
- "tower.scarif.local:${LOCAL_IP}"
|
||||
- "office.scarif.local:${LOCAL_IP}"
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:1
|
||||
@@ -130,6 +156,7 @@ services:
|
||||
- monica
|
||||
- nextcloud
|
||||
- gitea
|
||||
- collabora
|
||||
- certs
|
||||
ports:
|
||||
- 80:80
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
MYSQL_PASSWORD=secret
|
||||
MYSQL_DATABASE=nextcloud
|
||||
MYSQL_USER=chris
|
||||
58
nginx.conf
58
nginx.conf
@@ -340,6 +340,64 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
upstream collabora-handler {
|
||||
server collabora:9980;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name office.scarif.local;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
# static files
|
||||
location ^~ /loleaflet {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# WOPI discovery URL
|
||||
location ^~ /hosting/discovery {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# Capabilities
|
||||
location ^~ /hosting/capabilities {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# main websocket
|
||||
location ~ ^/lool/(.*)/ws$ {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_read_timeout 36000s;
|
||||
}
|
||||
|
||||
# download, presentation and image upload
|
||||
location ~ ^/lool {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# Admin Console websocket
|
||||
location ^~ /lool/adminws {
|
||||
proxy_pass http://collabora-handler;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_read_timeout 36000s;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://collabora-handler;
|
||||
}
|
||||
}
|
||||
|
||||
upstream gitea-handler {
|
||||
server gitea:3000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user