first commit

This commit is contained in:
2025-11-10 21:27:19 +00:00
parent 8282e13b65
commit fb3d8376d5
2 changed files with 26 additions and 19 deletions

View File

@@ -1,24 +1,26 @@
http:
routers:
# Router for Gogs (if it's running outside Docker or on different network)
gogs:
rule: "Host(`git.pkartchner.com`)"
entryPoints:
- https
service: gogs
middlewares:
- geoblock
- secure-headers
- crowdsec-bouncer
tls:
certResolver: letsencrypt
# Disabled - now using Gitea with Docker labels
# gogs:
# rule: "Host(`git.pkartchner.com`)"
# entryPoints:
# - https
# service: gogs
# middlewares:
# - geoblock
# - secure-headers
# - crowdsec-bouncer
# tls:
# certResolver: letsencrypt
services:
# Service for Gogs
gogs:
loadBalancer:
servers:
- url: "http://gogs.pkartchner.com:3000"
# Disabled - now using Gitea with Docker labels
# gogs:
# loadBalancer:
# servers:
# - url: "http://gogs.pkartchner.com:3000"
middlewares:
# Security headers
@@ -59,8 +61,8 @@ http:
silentStartUp: false
allowLocalRequests: true
logLocalRequests: false
logAllowedRequests: false
logApiRequests: false
logAllowedRequests: true
logApiRequests: true
api: https://get.geojs.io/v1/ip/country/{ip}
apiTimeoutMs: 750
cacheSize: 25
@@ -69,3 +71,10 @@ http:
unknownCountryApiResponse: nil
countries:
- US
# Rate limiting for Harbor - Prevent brute force attacks
harbor-ratelimit:
rateLimit:
average: 100
burst: 50
period: 1m

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
traefik:
image: traefik:v2.10