webserver

command
v2.0.0-...-518c4b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 17 Imported by: 0

README

Webserver

The webserver handles requests for qrank.wmcloud.org. It runs on the Wikimedia Cloud VPS infrastructure behind a reverse HTTP proxy.

Release instructions

We should set up an automatic release process, but are blocked on T194332. Meanwhile, here’s how to manually push a new version of the binary to the server.

GOOS=linux go build ./cmd/webserver
scp -J sascha@bastion.wmcloud.org ./webserver sascha@172.16.0.220:bin/webserver

On the server, we have the following configuration file in /etc/systemd/system/qrank-webserver.service:

[Unit]
Description=QRank Webserver
After=network.target

[Service]
Type=simple
Restart=always
User=sascha
WorkingDirectory=/home/sascha
ExecStart=/home/sascha/bin/webserver \
  --port=8080 \
  --storage-key=keys/storage-key

[Install]
WantedBy=multi-user.target

After logging into the server via ssh, control it like this:

sudo systemctl status qrank-webserver.service
sudo systemctl daemon-reload qrank-webserver.service
sudo systemctl stop qrank-webserver.service
sudo systemctl start qrank-webserver.service

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL