mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-24 10:27:00 -06:00
The desktop app joins wss:// sessions (rustls with webpki roots, certificates always checked, clear errors; FIGCRAFT_CA_FILE for private authorities), with one TLS session shared by the reader and writer threads. figcraft-server stops gracefully on SIGTERM/SIGINT/SIGHUP/Ctrl+C, ships in Linux x86_64/aarch64 release archives, and docs/server.md gains a Deploy on a Linux server guide with a hardened systemd unit, Caddyfile, nginx config and Dockerfile in packaging/server.
17 lines
567 B
Caddyfile
17 lines
567 B
Caddyfile
# Caddy in front of figcraft-server; setup in docs/server.md ("Deploy on a Linux server").
|
|
# Replace the host name with yours (its DNS must point at this machine). Caddy obtains and renews
|
|
# the certificate and passes WebSocket upgrades through by itself. Put this in /etc/caddy/Caddyfile
|
|
# and run `sudo systemctl reload caddy`.
|
|
|
|
figcraft.example.com {
|
|
reverse_proxy 127.0.0.1:47900
|
|
}
|
|
|
|
# Under a path of an existing site instead (then public_url = "wss://example.com/figcraft/"):
|
|
#
|
|
# example.com {
|
|
# handle /figcraft/* {
|
|
# reverse_proxy 127.0.0.1:47900
|
|
# }
|
|
# }
|