mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-09-18 20:44:34 -04:00
add security headers, and add tor and i2p containers
This commit is contained in:
parent
effece1749
commit
928d4a420b
7 changed files with 117 additions and 2 deletions
10
docker/i2p/Dockerfile
Normal file
10
docker/i2p/Dockerfile
Normal 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
12
docker/i2p/i2pd.conf
Normal 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
11
docker/i2p/tunnels.conf
Normal 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
7
docker/tor/Dockerfile
Normal 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
9
docker/tor/torrc
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue