aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_d_cfte.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-06-03 13:17:14 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-06-14 19:58:02 -0400
commit14a07cb1ebeef0062355245d7af4193d8537a3fd (patch)
treea2d91ebaaa777a59feecc94abdb1ae4ff7b61719 /org/config_d_cfte.org
parentbuild related, mostly nix flakes (diff)
makefile, too much, prune!
Diffstat (limited to 'org/config_d_cfte.org')
-rw-r--r--org/config_d_cfte.org81
1 files changed, 80 insertions, 1 deletions
diff --git a/org/config_d_cfte.org b/org/config_d_cfte.org
index 0a8aaae..0a4bdb5 100644
--- a/org/config_d_cfte.org
+++ b/org/config_d_cfte.org
@@ -16,7 +16,7 @@
#+PROPERTY: header-args+ :padline no
#+PROPERTY: header-args+ :mkdirp yes
-- [[./doc-reform.org][doc-reform.org]] [[./][org/]]
+- [[./doc-reform.org][doc-reform.org]] [[../org/][org/]]
* cfte views version.txt configuration.txt (set version & configuration) SET
@@ -69,6 +69,7 @@ version (Posix) {
SEE NOTES on configuration hierarchy in spine.org
*** spine: configuration.txt SET
+**** example
#+HEADER: :tangle "../views/configuration_example.txt"
#+BEGIN_SRC d
@@ -97,6 +98,71 @@ struct Cfg {
enum _cfg = Cfg();
#+END_SRC
+**** configure
+
+#+HEADER: :tangle ../views/configuration.txt_
+#+BEGIN_SRC d
+<<config_localhost>>
+#+END_SRC
+
+**** configure remote host (sisudoc.org)
+
+#+NAME: config_remotehost
+#+HEADER: :tangle ../views/configuration.txt_remotehost_
+#+BEGIN_SRC d
+struct Cfg {
+ string http_request_type = "https";
+ string http_host = "sisudoc.org";
+ string www_url_doc_root = "https://sisudoc.org";
+ string www_url_doc_subroot = "/spine";
+ string processing_path_doc_root = "/srv/www/spine";
+ string cgi_bin_root = "/var/www/cgi/cgi-bin";
+ string cgi_bin_subpath = "";
+ string cgi_filename = "spine_search";
+ string cgi_url_root = "https://sisudoc.org";
+ string cgi_port = "";
+ string cgi_user = "";
+ string cgi_url_action = "https://sisudoc.org/spine_search";
+ string cgi_search_form_title = "≅ SiSU Spine search";
+ string db_sqlite_path = "/var/www/sqlite";
+ string db_sqlite_filename = "spine.search.db";
+ string default_language = "en";
+ string default_papersize = "a4";
+ string default_text_wrap = "80";
+ string default_hash_digest = "sha256";
+}
+enum _cfg = Cfg();
+#+END_SRC
+
+**** configure localhost
+
+#+NAME: config_localhost
+#+HEADER: :tangle ../views/configuration.txt_localhost_
+#+BEGIN_SRC d
+struct Cfg {
+ string http_request_type = "http";
+ string http_host = "localhost";
+ string www_url_doc_root = "http://localhost";
+ string www_url_doc_subroot = "/spine";
+ string processing_path_doc_root = "/srv/www/spine";
+ string cgi_bin_root = "/var/www/cgi/cgi-bin";
+ string cgi_bin_subpath = "/cgi-bin";
+ string cgi_filename = "spine_search";
+ string cgi_url_root = "http://localhost/cgi-bin";
+ string cgi_port = "";
+ string cgi_user = "";
+ string cgi_url_action = "http://localhost/cgi-bin/spine_search";
+ string cgi_search_form_title = "≅ SiSU Spine search";
+ string db_sqlite_path = "/var/www/sqlite";
+ string db_sqlite_filename = "spine.search.db";
+ string default_language = "en";
+ string default_papersize = "a4,letter.portrait";
+ string default_text_wrap = "80";
+ string default_hash_digest = "sha256";
+}
+enum _cfg = Cfg();
+#+END_SRC
+
*** spine_search: configuration.txt SET
#+HEADER: :tangle "../sundry/spine_search_cgi/views/configuration_example.txt"
@@ -114,6 +180,19 @@ struct Cfg {
enum _cfg = Cfg();
#+END_SRC
+#+BEGIN_SRC d
+struct Cfg {
+ string http_request_type = "https";
+ string http_host = "sisudoc.org";
+ string www_url_doc_subroot = "/spine";
+ string cgi_filename = "spine_search";
+ string cgi_search_form_title = "≅ SiSU Spine search";
+ string db_sqlite_path = "/var/www/sqlite";
+ string db_sqlite_filename = "spine.search.db";
+}
+enum _cfg = Cfg();
+#+END_SRC
+
*** shared settings SET defaults
#+NAME: http_request_type