wraithi

module
v0.0.0-...-1ec5b87 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0

README

Wraith

Wraith is a game engine and web server.

Sources

Start the server with the ability to shut it down gracefully from clavinejune blog.

See Gregory Gaines' Blog for details on why we want to use BCrypt.

See Scott Piper's Blog for more details on auth/auth.

Running as a system service

WARNING: Don't trust this application to be secure. Use at your own risk.

I put together a systemd script based on the DO Tutorial.

/etc/systemd/system# cat wraith.service
[Unit]
Description=Wraith server
StartLimitIntervalSec=0
After=network-online.target

[Service]
Type=simple
User=www-data
PIDFile=/run/wraith.pid
WorkingDirectory=/var/www/wraith
ExecStart=/usr/local/bin/wraith
ExecReload=/bin/kill -USR1 $MAINPID
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target

Please do your own research on how to secure and lock down a service.

Copying

This repository is licensed under the GNU Affero General Public License. Please see the LICENSE file in the root of this repository.

Directories

Path Synopsis
cmd
wraith
Package main implements a web server for Wraith.
Package main implements a web server for Wraith.
internal
authn
Package authn implements an OAuth2 flow for authenticating users.
Package authn implements an OAuth2 flow for authenticating users.
config
Package config implements a configuration for Wraith game engine and web server.
Package config implements a configuration for Wraith game engine and web server.
dot
Package dot implements a wrapper around John Barton's package for loading dot files.
Package dot implements a wrapper around John Barton's package for loading dot files.
homedir
Package homedir implements a wrapper around Mitchell Hashimoto's homedir package (github.com/mitchellh/go-homedir).
Package homedir implements a wrapper around Mitchell Hashimoto's homedir package (github.com/mitchellh/go-homedir).
semver
Package semver implements semantic versioning.
Package semver implements semantic versioning.
way
wraith
Package wraith implements a game engine and web server for Wraith.
Package wraith implements a game engine and web server for Wraith.

Jump to

Keyboard shortcuts

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