Skip to content

Commit ae59acf

Browse files
docker: remove SHELLHUB_REDIRECT_TO_HTTPS and simplify docker-compose
This commit removes the SHELLHUB_REDIRECT_TO_HTTPS variable from the .env file and simplifies the docker-compose files. The docker-compose.nossl.yml file is removed and the SSL_COMPOSE_FILE variable in the bin/docker-compose script is updated to only include the autossl suffix if SHELLHUB_AUTO_SSL is true.
1 parent fe574bf commit ae59acf

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

.env

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ SHELLHUB_PROXY=false
2222
# Automatic HTTPS with Let's Encrypt
2323
SHELLHUB_AUTO_SSL=false
2424

25-
# Redirect requests from HTTP port to HTTPS port
26-
# NOTICE: In order to enable HTTPS redirection, you need to have HTTPS enabled
27-
SHELLHUB_REDIRECT_TO_HTTPS=false
28-
2925
# Domain of the server
3026
# NOTICE: Only required if automatic HTTPS is enabled
3127
# Values: a valid domain name

bin/docker-compose

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ set +o allexport
4242

4343
COMPOSE_FILE="docker-compose.yml"
4444

45-
[ "$SHELLHUB_AUTO_SSL" = "true" ] && SSL_COMPOSE_FILE=autossl || SSL_COMPOSE_FILE=nossl
45+
[ "$SHELLHUB_AUTO_SSL" = "true" ] && SSL_COMPOSE_FILE=autossl
4646

4747
COMPOSE_FILE="${COMPOSE_FILE}:docker-compose.${SSL_COMPOSE_FILE}.yml"
4848

docker-compose.nossl.yml

-6
This file was deleted.

0 commit comments

Comments
 (0)