Deploying Gate: Linux
Prerequisites
Gate is a statically built Go binary and has no linked dependencies.
Systemd
Add user:
adduser gate --disabled-password
Download Gate binary.
After that, you need to configure systemd service.
/etc/systemd/system/gate.service
[Unit]
Description=SlashID Gate reverse proxy
After=network.target network-online.target
Requires=network-online.target
[Service]
Type=simple
User=gate
Group=gate
ExecStart=/usr/bin/gate --yaml /etc/gate/gate.yaml
PrivateTmp=true
[Install]
WantedBy=multi-user.target
You need to prepare the Gate configuration. Example configuration:
/etc/gate/gate.yaml
gate:
default:
target: http://some-service:80
port: "8080"
log:
format: json
level: info
sudo systemctl daemon-reload
sudo systemctl enable --now gate
To restart service, please run:
sudo sudo systemctl restart gate
All possible configuration options are listed in the configuration page.