updating configuration

This commit is contained in:
Your Name
2026-03-10 07:08:59 +00:00
commit 9498a076ee
238 changed files with 18119 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM golang:latest as builder
RUN mkdir -p /src && cd /src && git clone https://github.com/thekvs/yandex-ddns .
WORKDIR /src
RUN go get -d
#GOOS=linux GOARCH=amd64
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
FROM alpine:latest
WORKDIR /
ADD ./run.sh /run.sh
RUN chmod +x /run.sh
COPY --from=builder /src/app .
CMD ["/run.sh"]
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
while true
do
echo "token=$TOKEN" > /yandex-ddns.toml
echo "domain=$DOMAIN" >> /yandex-ddns.toml
if [ -n "$SUBDOMAIN" ]; then
echo "subdomain=$SUBDOMAIN" >> /yandex-ddns.toml
fi
echo "ttl=$TTL" >> /yandex-ddns.toml
chmod 600 /yandex-ddns.toml
#cat /yandex-ddns.toml
./app
sleep 5m
done
+3
View File
@@ -0,0 +1,3 @@
TOKEN=xxxxxxxxx
DOMAIN=xxxxxxxxx
TTL=xxxxxxxxx