diff --git a/nginx/Dockerfile b/nginx/Dockerfile index ec14da8..b8d40f2 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -5,3 +5,5 @@ COPY nginx.conf /etc/nginx/nginx.conf COPY src/favicon.ico /usr/share/nginx/html/ COPY src/index.htm /usr/share/nginx/html/ COPY src/ttlsh_files /usr/share/nginx/html/ttlsh_files/ + +EXPOSE 8080 diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 4eb1a72..65c84f0 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,13 +1,13 @@ events {} http { server { - listen 80; - server_name staging.ttl.sh; + listen 8080; + server_name ttl.sh; location /v2 { client_max_body_size 10000m; - proxy_pass https://ttl.sh; + proxy_pass http://registry; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;