add shoelace frontend for threads

This commit is contained in:
Arya 2024-05-29 13:48:19 +05:30
parent 6860604c6a
commit 25df82eefa
Signed by: arya
GPG Key ID: 842D12BDA50DF120
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,51 @@
[server]
# Address to listen on
listen="0.0.0.0"
# Port to bind
port=8080
# Instance URL. Needed for accurate proxied media locations in API
base_url="https://lace.projectsegfau.lt"
[server.tls]
# Enable TLS support
enabled=false
# Path for certificate chain, in PEM format
cert="cert.pem"
# Path for key file, in PEM format
key="key.pem"
[endpoint]
# Toggle the frontend
frontend=true
# Toggle the API
api=true
[proxy]
# Proxy backend. Valid options are:
# - none: Disable the media proxy. Not recommended if frontend is enabled
# - internal: Stores values in memory. Destroys itself after stopping Shoelace.
# - redis: Stores values in a Redis server. Higher performance. Requires additional software
backend="internal"
[proxy.redis]
# URI for Redis server.
# - TCP: redis://[<username>][:<password>@]<hostname>[:port][/<db>]
# - Unix socket: redis+unix:///<path>[?db=<db>[&pass=<password>][&user=<username>]]
uri="redis://127.0.0.1/"
[logging]
# Sets log level, for both stdout and logfiles. Valid levels are:
# - error: Shows errors presented during runtime
# - warn: Plus Alerts
# - info: Plus useful information, such as PID, requests, etc. (Recommended)
# - debug: Plus verbose actions. Not being used much.
# - trace: Plus low-level, extremely verbose info. Not used much.
level = "info"
# Whether to log the IP of an incoming connection
log_ips = false
# Whether to log what URLs are being assigned to each hash
log_cdn = false
# Store logs in a text file
store = false
# Where to store the logs in that case
output = "shoelace.log"

View File

@ -290,3 +290,9 @@ priviblur.{{ server_prefix }}.projectsegfau.lt priviblur.projectsegfau.lt pb.psf
reverse_proxy :9084 reverse_proxy :9084
import torloc priviblur import torloc priviblur
} }
lace.{{ server_prefix }}.projectsegfau.lt lace.projectsegfau.lt l.psf.lt l.{{ server_prefix }}.psf.lt {
import def
reverse_proxy :9029
import torloc lace
}

View File

@ -256,6 +256,20 @@ apps:
REDIS_REPLICATION_MODE: master REDIS_REPLICATION_MODE: master
mounts: mounts:
- "{{data_dir}}/priviblur/redis-data:/data" - "{{data_dir}}/priviblur/redis-data:/data"
shoelace:
needs_configs_dir: true
needs_data_dir: true
docker_settings:
services:
- name: shoelace
image: nixgoat/shoelace
ports:
- "9029:8000"
mounts:
- "{{configs_dir}}/shoelace/shoelace.toml:/data/shoelace.toml"
- "{{data_dir}}/shoelace:/data"
environment:
SHOELACE_CONFIG=/data/shoelace.toml
watchtower: watchtower:
needs_configs_dir: false needs_configs_dir: false
needs_data_dir: false needs_data_dir: false