diff --git a/greataped/greatape.service b/greataped/greatape.service new file mode 100644 index 0000000..33244b3 --- /dev/null +++ b/greataped/greatape.service @@ -0,0 +1,17 @@ +[Unit] +Description=GreatApe +ConditionPathExists=/path/to/app +After=network.target + +[Service] +Type=simple +User=greatape +Group=greatape +WorkingDirectory=/path/to/app +ExecStart=/usr/local/go/bin/go run . +Environment="PORT=8080" +Environment="PROTOCOL=https" +Environment="DOMAIN=example.social" + +[Install] +WantedBy=multi-user.target \ No newline at end of file