Skip to content

Commit

Permalink
add caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
sawntoe committed Apr 8, 2024
1 parent a94d594 commit c84f060
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,28 @@ services:
- RUNNER_DB=runner_db #db for runner
ports:
- '5432:5432' #meant for script to add/update challs
nginx:
container_name: nginx
hostname: nginx
build: ./docker-misc/nginx/

caddy:
restart: always
ports:
- "80:80"
- "443:443"
links:
- "webapp"
volumes:
- ./docker-misc/caddy/Caddyfile


# nginx:
# container_name: nginx
# hostname: nginx
# build: ./docker-misc/nginx/
# restart: always
# ports:
# - "80:80"
# - "443:443"
# links:
# - "webapp"
webapp:
build:
context: ./
Expand Down
7 changes: 7 additions & 0 deletions docker-misc/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
https://dunhack.me {
@sectool {
header_regexp User-Agent ^w3af.sourceforge.net|dirbuster|nikto|SF|sqlmap|fimap|nessus|whatweb|Openvas|jbrofuzz|libwhisker|webshag
}
respond @sectool 403
reverse_proxy http://webapp:3000
}

0 comments on commit c84f060

Please sign in to comment.