mirror of
https://github.com/Thumbscrew/nextcloud-docker-compose.git
synced 2025-01-18 09:35:46 +00:00
remove unused nginx files
rename NGINX_HOST to NEXTCLOUD_DOMAIN
This commit is contained in:
parent
4c21dc9718
commit
de67d26593
@ -4,6 +4,7 @@ DOCKER_PROXY_NETWORK=proxy
|
|||||||
|
|
||||||
# nextcloud
|
# nextcloud
|
||||||
NEXTCLOUD_TAG=23-apache
|
NEXTCLOUD_TAG=23-apache
|
||||||
|
NEXTCLOUD_DOMAIN=nextcloud.example.com
|
||||||
|
|
||||||
# postgres
|
# postgres
|
||||||
POSTGRES_TAG=14
|
POSTGRES_TAG=14
|
||||||
|
@ -64,7 +64,7 @@ services:
|
|||||||
NEXTCLOUD_ADMIN_PASSWORD_FILE: /run/secrets/nextcloud_admin_password
|
NEXTCLOUD_ADMIN_PASSWORD_FILE: /run/secrets/nextcloud_admin_password
|
||||||
NEXTCLOUD_ADMIN_USER_FILE: /run/secrets/nextcloud_admin_user
|
NEXTCLOUD_ADMIN_USER_FILE: /run/secrets/nextcloud_admin_user
|
||||||
REDIS_HOST: redis
|
REDIS_HOST: redis
|
||||||
NEXTCLOUD_TRUSTED_DOMAINS: ${NGINX_HOST}
|
NEXTCLOUD_TRUSTED_DOMAINS: ${NEXTCLOUD_DOMAIN}
|
||||||
OVERWRITEPROTOCOL: https
|
OVERWRITEPROTOCOL: https
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -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;"]
|
|
@ -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};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
envsubst '${NGINX_HOST}' < /tmp/nginx/default.conf > /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
exec "$@"
|
|
Loading…
Reference in New Issue
Block a user