mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
Remove TLS from nginx — NPM handles TLS on LAN
This commit is contained in:
+1
-3
@@ -3,11 +3,9 @@ services:
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "${NGINX_BIND:-0.0.0.0}:${NGINX_PORT:-8080}:80"
|
||||
volumes:
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||||
- ./nginx/certs:/etc/nginx/certs
|
||||
- ./qr:/qr:ro
|
||||
depends_on:
|
||||
ui:
|
||||
|
||||
@@ -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;"]
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user