wekan / univention

Wekan on Univention specific Feature Requests, Bug Reports and Release Files
https://www.univention.com/products/univention-app-center/app-catalog/wekan/
MIT License
2 stars 0 forks source link

Wekan Univention Apache config missing websockets etc #4

Open xet7 opened 5 years ago

xet7 commented 5 years ago

Wekan has these options at Apache config: https://github.com/wekan/wekan/wiki/Apache

Some of them are missing from Univention Wekan generated config.

@bjo81

Can you add to this issue example of your working config, anonymized version?

bjo81 commented 5 years ago

I think the issue is related to /etc/univention/templates/files/etc/apache2/sites-available/000-default.d/10univention-appcenter

It consists of the following

@!@
from univention.appcenter.app_cache import Apps
from univention.appcenter.utils import app_ports

for app_id, container_port, host_port in app_ports():
        app = Apps().find(app_id)
        if app and app.auto_mod_proxy and app.has_local_web_interface():
                web_interface = app.web_interface
                scheme = app.web_interface_proxy_scheme
                if scheme == 'both':
                        scheme = 'http'
                if app.web_interface_port_http == container_port:
                        print '''
        ProxyPass %(web_interface)s %(scheme)s://127.0.0.1:%(web_port)s%(web_interface)s retry=0
        ProxyPassReverse %(web_interface)s %(scheme)s://127.0.0.1:%(web_port)s%(web_interface)s
''' % {'id': app.id, 'web_interface': web_interface, 'web_port': host_port, 'scheme': scheme}
                else:
                        # not relevant for mod_proxy
                        continue
@!@

In our case, it creates

        ProxyPass /wekan http://127.0.0.1:40002/wekan retry=0
        ProxyPassReverse /wekan http://127.0.0.1:40002/wekan

in /etc/apache2/sites-enabled/000-default. The config your inst-file created is included before that part, so I don't know if it might conflict.