Commit Graph

40 Commits

Author SHA1 Message Date
Saúl Ibarra Corretgé
53b2654556 web: auto-detect nginx resolver
Take it from /etc/resolv.conf in case it wasn't provided via the env
variable.

Fixes: https://github.com/jitsi/docker-jitsi-meet/issues/1430
2022-11-03 14:03:13 +01:00
wfleischer
576e5a9086 web: start with clean config.js 2022-06-14 11:36:35 +02:00
Saúl Ibarra Corretgé
261577c9cc web: stop using the default config file
It should be empty and we set all settings. This will reduce the size fo
the file and make it less confusing to inspect on a running system.
2022-05-20 10:53:12 +02:00
Saúl Ibarra Corretgé
ff8c1c2e31 web: regenerate interface_config.js on every boot
Customization is still available via custom-interface_config.js. This
way we will slowly get rid of the deprecated interface_config.js as all
options move to config.js.
2021-09-24 13:33:02 +02:00
Saúl Ibarra Corretgé
96419ba1d3 web: remove no longer needed code
The toolbar buttons have moved to config.js and are commented out by default.
2021-09-08 11:05:44 +02:00
Joy A
1835d651f9 web: recreate interface_config.js on container restart
Recreate interface_config.js on container restart if custom-interface_config.js exists
2021-09-08 11:03:46 +02:00
Bert Driehuis
cf90461810 web: fix acme.sh pre and post hooks
Fixes: https://github.com/jitsi/docker-jitsi-meet/issues/114
2021-07-05 09:11:37 +02:00
Saúl Ibarra Corretgé
d27336bece web: always try to renew cert on container boot
acme.sh is smart enough to not send the request out unless it's necessary.
2021-04-01 15:15:53 +02:00
Daniel Trierweiler
c4fc3d37c6 web: make a custom interface config possible 2021-03-10 14:19:20 +01:00
Kevin Conway
b45b505980 web: always install acme.sh when container starts
The previous version only installed acme.sh if it was not previously
installed. However, the check for a previous installation was based on
the existence of /config/acme.sh/acme.sh which is in the
external/persisted storage. The result was that acme.sh installation
would be skipped even for a new build of the web container if the
installation had been run on any previous build of the container. When
the web container is rebuilt, such as during an upgrade to a new stable
version, the new container would lack the cron job needed to
automatically updated the TLS certificates. Additionally, the version of
acme.sh installed in /config/acme.sh would never update even if the
pinned version in the Dockerfile was changed.

This patch sets the init script to always re-install acme.sh on
container start. The cron job installation from acme.sh is guarded by a
check for an existing job so there is no duplication. Re-installing also
has the effect of replacing the persisted /config/acme.sh/acme.sh with
the latest version set in the Dockerfile during upgrades.
2021-03-09 12:39:12 +01:00
Saúl Ibarra Corretgé
700c04a629 web: properly handle acme.sh return codes
It exits with 2 in case a renew is not necessary.
2020-12-04 15:40:18 +01:00
Saúl Ibarra Corretgé
4cb181c1b2 web: install acme certs to persistent storage 2020-12-04 15:17:48 +01:00
Saúl Ibarra Corretgé
1d2c68a32f web: fix running acme.sh on the right home directory 2020-12-04 15:17:04 +01:00
Saúl Ibarra Corretgé
06012127e9 web: replace certbot with acme.sh
The former seems to be in a pretty bad state for usage with Debian based
containers:

- The Debian provided package is too old
- certbot-auto no longer works on Debian
- The recommended way of using snap is not Docker friendly

Thus, we are migrating to acme.sh, which has the advantage of also
making the web container slimmer.
2020-12-02 16:03:17 +01:00
Felix Geyer
c36c4d02a7 web: always rebuild nginx configs on start 2020-11-27 21:31:20 +01:00
Saúl Ibarra Corretgé
81103362b5 web: add ability to configure the nginx resolver 2020-10-02 16:45:21 +02:00
Aaron van Meerten
c149463823 web: build config.js on each boot
Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
2020-10-02 15:25:44 +02:00
Nickolay V. Shmyrev
baed605569 web: fix removing closed captions button if transcription is enabled 2020-07-02 09:59:08 +02:00
Mathieu Brunot
edecacd0c0 etherpad: add ability to use a external server 2020-06-27 16:21:31 +02:00
Saúl Ibarra Corretgé
b039b29b7a web: use certbot-auto 2020-04-15 21:56:40 +02:00
Hanno Böck
dc46215600 web: remove DHE suites support
Ref: https://github.com/jitsi/docker-jitsi-meet/issues/433
2020-04-14 16:59:19 +02:00
Saúl Ibarra Corretgé
2c95ab7c9f web: revert using PUBLIC_URL for BOSH URL
This partially reverts
5e6faced4f

It was unnecessary, and created lot of trouble.
2020-04-14 11:17:05 +02:00
Saúl Ibarra Corretgé
5e6faced4f web: use PUBLIC_URL for etherpaad base and BOSH URLs 2020-03-28 15:40:25 +01:00
Frank Sachsenheim
cd4a071ed4 web: check for certbot's success and exit in case of a failure 2020-03-24 22:45:55 +01:00
Matthias Herzog
6234a18dc6 web: fix letsencrypt renewal 2020-01-07 16:00:45 +00:00
netaskd
ffa017b74d jibri: add jibri service 2019-12-04 14:53:59 +01:00
netaskd
e48bf46f7c jigasi,web: add transcription options 2019-08-07 23:02:30 +02:00
netaskd
62f2d11cab web,etherpad: add etherpad addon for sharing document 2019-08-07 22:48:47 +02:00
Saúl Ibarra Corretgé
fcf83859e4 web: add ability to disable HTTPS
If TLS is terminated elsewhere and then connections are proxied over
HTTP, there is no need for it and it makes initialization a tad slower
on the first run.
2018-11-07 14:15:09 +01:00
Saúl Ibarra Corretgé
5c988de8b6 web: refactor nginx configuration 2018-11-07 14:02:36 +01:00
Saúl Ibarra Corretgé
f61ef3f093 web: add builtin Let's Encrypt support 2018-11-07 14:02:36 +01:00
Saúl Ibarra Corretgé
ca47165807 web: move key generation to the main config script 2018-11-07 10:08:09 +01:00
Saúl Ibarra Corretgé
415f10406f web: split TLS configuration and make it stronger
Resources:

- https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
- https://weakdh.org/sysadmin.html
2018-11-07 10:08:09 +01:00
Saúl Ibarra Corretgé
ee90a92d43 xmpp: add support for authentication 2018-10-18 12:08:30 +02:00
Saúl Ibarra Corretgé
1010c71b33 core: rework templating
Use frep [0] which uses the Go templating capabilities.

[0]: https://github.com/subchen/frep
2018-08-09 21:43:54 +02:00
Saúl Ibarra Corretgé
50863f3ea2 web: add ability to customize interface_config.js 2018-05-04 08:29:46 +02:00
Saúl Ibarra Corretgé
822cca7d39 xmpp: add ability to customize the XMPP MUC domain 2018-04-28 17:42:37 +02:00
Saúl Ibarra Corretgé
84332c9527 xmpp: add ability to customize the jicofo auth user 2018-04-26 08:38:59 +02:00
Saúl Ibarra Corretgé
c6cc67b68d Use an unaltered config.js file
Make all the necessary changes outside, setting the bosh URL
in this case.
2018-03-14 11:37:09 +01:00
Saúl Ibarra Corretgé
467a149cbb Initial import 2018-03-14 10:23:50 +01:00