remove unused nginx files

rename NGINX_HOST to NEXTCLOUD_DOMAIN
This commit is contained in:
James 2022-02-08 23:15:15 +00:00
parent 4c21dc9718
commit de67d26593
5 changed files with 2 additions and 45 deletions

View File

@ -4,6 +4,7 @@ DOCKER_PROXY_NETWORK=proxy
# nextcloud
NEXTCLOUD_TAG=23-apache
NEXTCLOUD_DOMAIN=nextcloud.example.com
# postgres
POSTGRES_TAG=14

View File

@ -64,7 +64,7 @@ services:
NEXTCLOUD_ADMIN_PASSWORD_FILE: /run/secrets/nextcloud_admin_password
NEXTCLOUD_ADMIN_USER_FILE: /run/secrets/nextcloud_admin_user
REDIS_HOST: redis
NEXTCLOUD_TRUSTED_DOMAINS: ${NGINX_HOST}
NEXTCLOUD_TRUSTED_DOMAINS: ${NEXTCLOUD_DOMAIN}
OVERWRITEPROTOCOL: https
depends_on:
- db

View File

@ -1,9 +0,0 @@
FROM nginx:latest
COPY default.conf /tmp/nginx/default.conf
COPY docker-entrypoint.sh /tmp/docker-entrypoint.sh
RUN chmod 755 /tmp/docker-entrypoint.sh
ENTRYPOINT [ "/tmp/docker-entrypoint.sh" ]
CMD ["nginx", "-g", "daemon off;"]

View File

@ -1,29 +0,0 @@
server {
listen 443 ssl;
server_name ${NGINX_HOST};
ssl_certificate /etc/ssl/certs/server.cert.pem;
ssl_certificate_key /etc/ssl/private/server.key.pem;
location / {
proxy_pass http://nextcloud:80;
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 64;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Front-End-Https on;
client_max_body_size 5G;
}
}
server {
if ($host = ${NGINX_HOST}) {
return 301 https://$host$request_uri;
}
listen 80;
server_name ${NGINX_HOST};
}

View File

@ -1,6 +0,0 @@
#!/usr/bin/env sh
set -eu
envsubst '${NGINX_HOST}' < /tmp/nginx/default.conf > /etc/nginx/conf.d/default.conf
exec "$@"