Take out all non-SSL ports for NGINX

This commit is contained in:
Brett 2023-06-03 10:22:55 +02:00
parent a702914f20
commit d06847dd24
3 changed files with 2 additions and 5 deletions

View File

@ -19,7 +19,6 @@ services:
ckan: ckan:
condition: service_healthy condition: service_healthy
ports: ports:
- "0.0.0.0:${NGINX_PORT_HOST}:${NGINX_PORT}"
- "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}" - "0.0.0.0:${NGINX_SSLPORT_HOST}:${NGINX_SSLPORT}"
ckan: ckan:

View File

@ -12,8 +12,6 @@ COPY setup/default.conf ${NGINX_DIR}/conf.d/
RUN mkdir -p ${NGINX_DIR}/certs RUN mkdir -p ${NGINX_DIR}/certs
EXPOSE 81
ENTRYPOINT \ ENTRYPOINT \
openssl req \ openssl req \
-subj '/C=DE/ST=Berlin/L=Berlin/O=None/CN=localhost' \ -subj '/C=DE/ST=Berlin/L=Berlin/O=None/CN=localhost' \

View File

@ -1,6 +1,6 @@
server { server {
listen 80; #listen 80;
listen [::]:80; #listen [::]:80;
listen 443 ssl; listen 443 ssl;
listen [::]:443 ssl; listen [::]:443 ssl;
server_name localhost; server_name localhost;