Remove TLS from nginx — NPM handles TLS on LAN

This commit is contained in:
jwinterm
2026-03-10 11:32:16 -04:00
parent 5f1154d363
commit 47cd52686a
3 changed files with 2 additions and 21 deletions
+1 -3
View File
@@ -3,11 +3,9 @@ services:
build: build:
context: ./nginx context: ./nginx
ports: ports:
- "80:80" - "${NGINX_BIND:-0.0.0.0}:${NGINX_PORT:-8080}:80"
- "443:443"
volumes: volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro - ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/certs:/etc/nginx/certs
- ./qr:/qr:ro - ./qr:/qr:ro
depends_on: depends_on:
ui: ui:
-8
View File
@@ -1,9 +1 @@
FROM nginx:1.27-alpine FROM nginx:1.27-alpine
RUN apk add --no-cache openssl
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
+1 -10
View File
@@ -2,16 +2,7 @@ limit_req_zone $binary_remote_addr zone=global_rate_limit:10m rate=50r/s;
server { server {
listen 80; listen 80;
server_name localhost host.docker.internal example.com; server_name xmrcheckout.such.software localhost;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name localhost host.docker.internal example.com;
ssl_certificate /etc/nginx/certs/dev.crt;
ssl_certificate_key /etc/nginx/certs/dev.key;
limit_req zone=global_rate_limit burst=200 nodelay; limit_req zone=global_rate_limit burst=200 nodelay;