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:
|
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:
|
||||||
|
|||||||
@@ -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;"]
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user