]> lifelog.hopto.org Git - PerlCNF.git/commitdiff
Working service examples scripts.
authorWill Budic <redacted>
Fri, 28 Mar 2025 01:53:37 +0000 (12:53 +1100)
committerWill Budic <redacted>
Fri, 28 Mar 2025 01:53:37 +0000 (12:53 +1100)
system/PerlCNFWEB.service [new file with mode: 0644]
system/server.cnf [new file with mode: 0644]

diff --git a/system/PerlCNFWEB.service b/system/PerlCNFWEB.service
new file mode 100644 (file)
index 0000000..1981f05
--- /dev/null
@@ -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 (file)
index 0000000..dfe51e8
--- /dev/null
@@ -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
+###
+<<<CONST
+    TZ  = Australia/Sydney
+    port = 8282
+    # When enable starts the server in the background then immediately returning.
+    run_as_background_process = no
+    # When enabled will keep small server files loaded in memory of server.
+    cache_content_of_particulars = no
+    # When enabled will respond back to client with compressed content if it supports it.
+    compress_particulars = yes
+>>>
+
+<<@<@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
+>>