diff --git a/config.yaml.sample b/config.yaml.sample new file mode 100644 index 0000000..63c3379 --- /dev/null +++ b/config.yaml.sample @@ -0,0 +1,18 @@ +--- +active_capsules: + - localhost + - localhost2 +localhost: + Hostname: "localhost" + Port: "1965" + RootDir: "/var/gemini" + CGIDir: "/var/gemini/cgi" + KeyFile: "localhost.key" + CertFile: "localhost.crt" +localhost2: + Hostname: "gemini.saintnet.tech" + Port: "1966" + RootDir: "/var/gemini2" + CGIDir: "/var/gemini2/cgi" + KeyFile: "localhost2.key" + CertFile: "localhost2.crt" diff --git a/secretshop.service b/secretshop.service new file mode 100644 index 0000000..3841072 --- /dev/null +++ b/secretshop.service @@ -0,0 +1,13 @@ +[Unit] +Description=SecretSecret: A secret Gemini server +After=network.target +StartLimitIntervalSec=0 +[Service] +Type=simple +Restart=always +RestartSec=1 +User=root +ExecStart=/usr/local/bin/secretshop + +[Install] +WantedBy=multi-user.target