From e7f8f5f200092ccd412403cf3c5a0dab5eed18e2 Mon Sep 17 00:00:00 2001 From: Will Budic Date: Fri, 28 Mar 2025 12:53:37 +1100 Subject: [PATCH] Working service examples scripts. --- system/PerlCNFWEB.service | 9 ++++++++ system/server.cnf | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 system/PerlCNFWEB.service create mode 100644 system/server.cnf diff --git a/system/PerlCNFWEB.service b/system/PerlCNFWEB.service new file mode 100644 index 0000000..1981f05 --- /dev/null +++ b/system/PerlCNFWEB.service @@ -0,0 +1,9 @@ +[Unit] +Description=PerlCNFWEBServer Service + +[Service] +WorkingDirectory=/home/will/PerlCNFWEBServer +ExecStart=/home/will/PerlCNFWEBServer/server.pl + +[Install] +WantedBy=multi-user.target diff --git a/system/server.cnf b/system/server.cnf new file mode 100644 index 0000000..dfe51e8 --- /dev/null +++ b/system/server.cnf @@ -0,0 +1,43 @@ +!CNF3.3 +### +# Working configuration file for PerlCNFServer project. +# For the web authority certificate following tool was used: +# certbot certonly --standalone -d lifelog.hopto.org +### +<<>> + +<<@<@GLOB_HTML_SERVE>cgi,htm,html,md,txt>> + + +<<@<%SSL> + server = 1 + use_cert = 1 + cert_file = /etc/letsencrypt/live/lifelog.hopto.org/fullchain.pem + key_file = /etc/letsencrypt/live/lifelog.hopto.org/privkey.pem + enabled : yes +>> + +<<@<%LOG> + directory = "data" + file = web_server.log + # Should it mirror to console too? + console = 0 + # Disable/enable output to file at all? + enabled = 1 + # Tail size cut, set to 0 if no tail cutting is desired. + tail = 1000 +>> + +<<@<%REGISTRY> + app = apps/app.cnf, PAGE_CONTENT + app_get_query = apps/app_particulars.cnf, GET_QUERY +>> -- 2.34.1