Skip to content

Commit

Permalink
Test nginx on port 8080 (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Mar 15, 2024
1 parent df3f579 commit 72304f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 72304f0

Please sign in to comment.