Hi All,
Hoping this is possible with hiawatha.
I have a debian 8 VM currently serving nextcloud with hiawatha. The configuration for nextcloud came from this forum and its working great.
Binding {
Port = 443
TLScertFile = /etc/hiawatha/tls/my-website.pem
MaxRequestSize = 2048
TimeForRequest = 30
}
VirtualHost { # my-website.uk
Hostname = www.my-website.uk, my-website.uk
WebsiteRoot = /var/www/hiawatha/nextcloud
AccessLogfile = /var/log/hiawatha/my-website.uk/access.log
ErrorLogfile = /var/log/hiawatha/my-website.uk/error.log
RequireTLS = yes
TimeForCGI = 5
UseFastCGI = PHP7
UseToolkit = nextcloud
WebDAVapp = yes
EnablePathInfo = yes
StartFile = index.html
}
UrlToolkit {
ToolkitID = nextcloud
Match ^/\.well-known/host-meta(\?(.*))? Rewrite /public.php?service=host-meta&$2
Match ^/\.well-known/host-meta\.json(\?(.*))? Rewrite /public.php?service=host-meta-json&$2
Match ^/\.well-known/carddav Rewrite /remote.php/dav/
Match ^/\.well-known/caldav Rewrite /remote.php/dav/
Match ^/remote/([^?]*)(\?.*)? Rewrite /remote.php$2
# Match ^/(?:build|tests|config|lib|3rdparty|templates)/.* DenyAccess
Match ^/.well-known/acme-challenge/.* Return
# Match ^/(?:\.|autotest|occ|issue|indie|db_|console).* DenyAccess
}
Now however, I'd like to integrate Collabora Office into nextcloud. I've had a hunt through the forums but can't find the information I need. Mostly I'm struggling with the concept of a docker image and how hiawatha interacts with it.
On the Collabora Online website they give the following configuration for nginx reverse proxying.
server {
listen 443 ssl;
server_name collabora.example.com;
ssl_certificate /path/to/ssl_certificate;
ssl_certificate_key /path/to/ssl_certificate_key;
# static files
location ^~ /loleaflet {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# Main websocket
location ~ /lool/(.*)/ws$ {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass https://localhost:9980;
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 https://localhost:9980;
proxy_set_header Host $http_host;
}
}
Is it possible to convert the following into a hiawatha configuration? Does hiawatha support WOPI?
Thanks