1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Add docs and default config for SHARELATEX_LISTEN_IP (#105)

* Add docs and default config for SHARELATEX_LISTEN_IP

* empty value considered not set for `SHARELATEX_LISTEN_IP `

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* updated changelog and fixed dates for previous entries

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
Miguel Serrano 2022-08-16 11:33:58 +02:00 committed by GitHub
parent aa084d5dfe
commit 46ad6309c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View file

@ -1,6 +1,17 @@
# Changelog
## TBD
## 2022-08-16
### Added
- Updated default [`version`](https://github.com/overleaf/toolkit/blob/master/lib/config-seed/version) to `3.2.0`.
- Updated Mongo version from 4.2 to 4.4. Documentation on Mongo updates can be found [here](https://github.com/overleaf/overleaf/wiki/Updating-Mongo-version).
- Print warning when `SHARELATEX_LISTEN_IP` is not defined.
## 2021-10-13
### Added
- HTTP to HTTPS redirection.
- Listen mode of the `sharelatex` container now `localhost` only, so the value of `SHARELATEX_LISTEN_IP` must be set to the public IP address for direct container access.
## 2021-08-12
### Added
- Server Pro: New variable to control LDAP and SAML, `EXTERNAL_AUTH`, which can
be set to one of `ldap`, `saml`, `none`. This is the preferred way to activate
@ -10,9 +21,11 @@
- This should not affect current installations. Please contact support if you
encounter any problems
- See [LDAP](./doc/ldap.md) and [SAML](./doc/saml.md) documentation for more
## 2020-11-25
### Added
- `bin/upgrade` displays any changes to the changelog and prompts for
confirmation before applying the remote changes to the local branch.
### Misc
- Fix code linting errors in bin/ scripts

View file

@ -81,6 +81,12 @@ function __main__() {
NGINX_ENABLED="false"
fi
if [ -z ${SHARELATEX_LISTEN_IP} ];
then
echo "WARNING: the value of SHARELATEX_LISTEN_IP is not set in config/overleaf.rc. This value must be set to the public IP address for direct container access. Defaulting to 0.0.0.0"
SHARELATEX_LISTEN_IP="0.0.0.0"
fi
if [[ "$NGINX_ENABLED" == "true" ]]; then
if [[ -n "${TLS_PRIVATE_KEY_PATH-}" ]]; then
TLS_PRIVATE_KEY_PATH=$(cd "$TOOLKIT_ROOT"; realpath "$TLS_PRIVATE_KEY_PATH")

View file

@ -26,6 +26,8 @@ Sets the path to the directory that will be mounted into the main `sharelatex` c
Sets the host IP address(es) that the container will bind to. For example, if this is set to `0.0.0.0`, then the web interface will be available on any host IP address.
Since https://github.com/overleaf/toolkit/pull/77 the listen mode of the application container was changed to `localhost` only, so the value of `SHARELATEX_LISTEN_IP` must be set to the public IP address for direct container access.
Setting `SHARELATEX_LISTEN_IP` to either `0.0.0.0` or the external IP of your host will typically cause errors when used in conjunction with the [TLS Proxy](tls-proxy.md).
- Default: `127.0.0.1`