Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 832 Bytes

File metadata and controls

57 lines (36 loc) · 832 Bytes

Server setup and management

Add a record to DNS

Add an A record @ which points to the IPV4 address of the VPS. For IPV6 add a AAAA record @ which points to the IPV6 address of the VPS.

Initial server setup

Move the setup script to the server:

scp server-setup.sh root@example.andersmurphy.com:

ssh into server as root:

ssh root@example.andersmurphy.com

run bash script:

bash server-setup.sh

follow instructions.

Caddy service

Check status:

systemctl status caddy

Reload config without downtime.

systemctl reload caddy

Docs: https://caddyserver.com/docs/running#using-the-service

Useful systemd commands

Check status of service.

systemctl status app.service

Restart service manually:

systemctl restart app.service