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
-8
View File
@@ -1,9 +1 @@
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 {
listen 80;
server_name localhost host.docker.internal example.com;
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;
server_name xmrcheckout.such.software localhost;
limit_req zone=global_rate_limit burst=200 nodelay;