add security headers, and add tor and i2p containers

This commit is contained in:
pluja 2024-02-19 17:27:07 +01:00
parent effece1749
commit 928d4a420b
7 changed files with 117 additions and 2 deletions

10
docker/i2p/Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM alpine:latest
RUN apk --update --no-cache add i2pd && rm -rf /var/cache/apk/*
COPY i2pd.conf /i2p/i2pd.conf
COPY tunnels.conf /i2p/tunnels.conf
#EXPOSE 14447
ENTRYPOINT ["i2pd", "--conf=/i2p/i2pd.conf"]

12
docker/i2p/i2pd.conf Normal file
View file

@ -0,0 +1,12 @@
ipv4 = true
ipv6 = false
bandwidth = P
daemon = false
tunconf = /i2p/tunnels.conf
log = file
logfile = /i2p/log
logclftime = true

11
docker/i2p/tunnels.conf Normal file
View file

@ -0,0 +1,11 @@
[KYCNotMeServer]
type = http
host = caddy
port = 80
keys = KYCNotMe.dat
#[SOCKS]
#type = socks
#address = localhost
#port = 14447
#keys = SOCKS.dat

7
docker/tor/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk --update --no-cache add tor && rm -rf /var/cache/apk/*
COPY torrc /etc/torrc
ENTRYPOINT ["/usr/bin/tor", "--hush", "-f", "/etc/torrc"]

9
docker/tor/torrc Normal file
View file

@ -0,0 +1,9 @@
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 caddy:80
BridgeRelay 0
ExitRelay 0
Log notice stderr
DataDirectory /var/lib/tor
RunAsDaemon 0
SOCKSPort 0
SafeLogging 1