2021-05-07 20:50:16 +02:00
|
|
|
[
|
|
|
|
{ type: install
|
|
|
|
message: <<EOM
|
|
|
|
Gemserv gemini server is now installed.
|
|
|
|
|
|
|
|
README and UPDATING files from source distribution are installed in:
|
|
|
|
|
2023-01-26 18:53:00 +01:00
|
|
|
${PREFIX}/share/doc/gemserv/
|
2021-05-07 20:50:16 +02:00
|
|
|
|
|
|
|
Example cgi-scripts are installed in:
|
|
|
|
|
2023-01-26 18:53:00 +01:00
|
|
|
${PREFIX}/share/examples/gemserv/
|
2021-05-07 20:50:16 +02:00
|
|
|
|
|
|
|
Quick Start:
|
|
|
|
|
2023-01-26 18:53:00 +01:00
|
|
|
1) Check, edit server configuration in ${LOCALBASE}/gemserv/config.toml
|
2021-05-07 20:50:16 +02:00
|
|
|
(see config.toml-dist for all configuration options)
|
|
|
|
2) Generate TLS key and cert, i.e. for domain "gemini.example.net":
|
|
|
|
|
2023-01-26 18:53:00 +01:00
|
|
|
openssl req -newkey rsa:4096 -nodes -keyout ${LOCALBASE}/gemserv/key.pem \
|
|
|
|
-x509 -days 36500 -out ${LOCALBASE}/gemserv/cert.pem \
|
2021-05-07 20:50:16 +02:00
|
|
|
-subj "/C=FR/ST=FR/L=FR/O=example.net/OU=IT/CN=gemini.example.net/emailAddress=root@example.net"
|
|
|
|
|
2023-01-26 18:53:00 +01:00
|
|
|
chown _gemini ${LOCALBASE}/gemserv/key.pem
|
2021-05-07 20:50:16 +02:00
|
|
|
|
|
|
|
3) sysrc gemserv_enable=YES
|
|
|
|
4) service gemserv start
|
|
|
|
5) tail /var/log/messages
|
|
|
|
EOM
|
|
|
|
}
|
|
|
|
]
|