mkdir -p ~/docker-v2ray-alpine/etc
cd ~/docker-v2ray-alpine
create Dockerfile
create etc/v2ray.json
V2Ray 4.22.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.13.5 linux/arm64)
A unified platform for anti-censorship.
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/ssl/server.pem"
ssl.ca-file = "/etc/ssl/fullchain.crt"
}
$SERVER["socket"] == ":2443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/ssl/server.pem"
ssl.ca-file = "/etc/ssl/fullchain.crt"
}
https://github.com/m4rcu5nl/docker-lighttpd-alpine/blob/master/config/lighttpd/lighttpd.conf
[url]https://raw.githubusercontent.com/spujadas/lighttpd-docker/master/etc/lighttpd/mime-types.conf
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_access",
"mod_proxy",
"mod_accesslog",
"mod_openssl"
)
Docker exec lighttpd cat /etc/lighttpd/access.log
FROM alpine:latest
# Install packages
RUN apk add --update --no-cache \
lighttpd \
lighttpd-mod_webdav \
openssl \
curl && \
rm -rf /var/cache/apk/*
COPY htdocs/index.html /var/www/localhost/htdocs/
COPY etc/* /etc/lighttpd/
HEALTHCHECK --interval=3m --timeout=5s \
CMD curl -f http://localhost/ || exit 1
# Expose http(s) ports
EXPOSE 80 443 8443
# Make configuration path and webroot a volume
VOLUME /etc/lighttpd/
ENTRYPOINT ["lighttpd", "-D", "-f","/etc/lighttpd/lighttpd.conf"]
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) | Powered by Discuz! 7.2 |