18 lines
1.2 KiB
Bash
18 lines
1.2 KiB
Bash
# GoToSocial: sqlite, told to accept Caddy's certificate and to reach private addresses.
|
|||
|
|
GTS_IMAGE=docker.io/superseriousbusiness/gotosocial:0.22.1
|
||
|
|
|
||
|
|
gts_up() {
|
||
|
|
podman run -d --replace --name pasture-gts --network $net -p 127.0.0.1:6972:80 \
|
||
|
|
--sysctl net.ipv4.ip_unprivileged_port_start=0 \
|
||
|
|
-e GTS_HOST=gts.test -e GTS_PROTOCOL=https -e GTS_PORT=80 -e GTS_BIND_ADDRESS=0.0.0.0 -e GTS_HTTP_CLIENT_TLS_INSECURE_SKIP_VERIFY=true \
|
||
|
|
-e GTS_DB_TYPE=sqlite -e GTS_DB_ADDRESS=/gotosocial/storage/sqlite.db -e GTS_STORAGE_LOCAL_BASE_PATH=/gotosocial/storage \
|
||
|
|
-e GTS_LETSENCRYPT_ENABLED=false -e GTS_HTTP_CLIENT_ALLOW_IPS=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 \
|
||
|
|
-e GTS_TRUSTED_PROXIES=0.0.0.0/0 -e GTS_LOG_LEVEL=info -e GTS_INSTANCE_EXPOSE_PUBLIC_TIMELINE=true \
|
||
|
|
$GTS_IMAGE >/dev/null
|
||
|
|
wait_http http://127.0.0.1:6972/api/v1/instance
|
||
|
|
podman exec pasture-gts /gotosocial/gotosocial admin account create --username gtsuser --email gtsuser@gts.test --password 'Gts-Pasture-Pass-1!' >/dev/null 2>&1 || true
|
||
|
|
podman exec pasture-gts /gotosocial/gotosocial admin account confirm --username gtsuser >/dev/null 2>&1 || true
|
||
|
|
podman restart pasture-gts >/dev/null
|
||
|
|
wait_http http://127.0.0.1:6972/api/v1/instance
|
||
|
|
echo "gotosocial: https://gts.test:6443"
|
||
|
|
}
|