Contents
hide
宝塔网站配置
- 建立新的网站 – 不用开启数据库
- 放行端口 10080
Docker运行
# 本地存储目录
mkdir -p /root/privatebin/data /root/privatebin/config
chmod 777 /root/privatebin/data
wget -O /root/privatebin/config/conf.sample.php https://raw.githubusercontent.com/PrivateBin/PrivateBin/master/cfg/conf.sample.php
cp /root/privatebin/config/conf.sample.php /root/privatebin/config/conf.php
# edit conf.php if needed 以后也可以直接修改这个conf.php
# main show
docker run -d --restart="always" \
-e PUID=$UID \
-e PGID=$GID \
--name privatebin --read-only \
-p 10080:8080 \
-v /root/privatebin/config/conf.php:/srv/cfg/conf.php:ro \
-v /root/privatebin/data:/srv/data \
privatebin/nginx-fpm-alpine:1.3.1
测试:IP:10080
开启反代+HTTPS
- 先反代
- 再申请SSL 证书并开启https
享受服务
打开 https://direct.privatebin.domain 即可自动到达