2022-02-13 17:58:25 +01:00
|
|
|
# file: gsl.conf
|
|
|
|
# Folder: /etc/gsl
|
|
|
|
# By echolib
|
|
|
|
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
|
|
|
|
|
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# Folders
|
|
|
|
#=======================================================================
|
2022-03-27 18:46:48 +02:00
|
|
|
app_name="gsl"
|
|
|
|
|
2022-02-13 17:58:25 +01:00
|
|
|
# Librairies
|
|
|
|
gsl_dir_lib="/var/lib/gsl"
|
|
|
|
gsl_dir_scripts="$gsl_dir_lib/scripts"
|
|
|
|
gsl_dir_helps="$gsl_dir_lib/helps"
|
|
|
|
|
|
|
|
# Management
|
|
|
|
gsl_dir_db="$gsl_dir_lib/db"
|
|
|
|
gsl_dir_global_domains="/var/lib/gsl/domains"
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
gsl_dir_logs="/var/log/gsl"
|
|
|
|
|
|
|
|
# User
|
|
|
|
gsl_dir_user_domains="/home/$USER/.config/gsl/domains"
|
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# Files
|
|
|
|
#=======================================================================
|
|
|
|
# Logs
|
|
|
|
gsl_file_logs="$gsl_dir_logs/gsl.log"
|
|
|
|
|
|
|
|
# Management
|
|
|
|
gsl_file_db_domains="$gsl_dir_db/domains.db"
|
|
|
|
gsl_file_db_posts="$gsl_dir_db/posts.db"
|
2022-02-19 18:17:09 +01:00
|
|
|
gsl_file_db_files="$gsl_dir_db/files.db"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
|
|
# Registred Authors filename
|
|
|
|
gsl_filename_auth="authors.db"
|
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# GSL Internal Configuration
|
|
|
|
#=======================================================================
|
|
|
|
# minimum size to check a post
|
2022-04-23 17:51:46 +02:00
|
|
|
gsl_post_min_size=150
|
2022-02-13 17:58:25 +01:00
|
|
|
|
2022-04-14 15:49:49 +02:00
|
|
|
# Max Posts list in sidebar
|
|
|
|
gsl_list_max_posts=5
|
|
|
|
|
2022-02-13 17:58:25 +01:00
|
|
|
# Init log datas
|
|
|
|
gsl_log_e='Err'
|
|
|
|
gsl_log_w='War'
|
|
|
|
gsl_log_i='Inf'
|
|
|
|
|
|
|
|
# Date format
|
|
|
|
gsl_test_date='^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]+$'
|
|
|
|
|
2022-02-16 14:11:41 +01:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# Set LOG help Activity for NEEDED HEADERS
|
|
|
|
#-----------------------------------------------------------------------
|
2022-02-13 17:58:25 +01:00
|
|
|
gsl_log_act_title='POST TITLE'
|
|
|
|
gsl_log_act_author='REGISTRED NAME'
|
|
|
|
gsl_log_act_date='YYYY-MM-DD'
|
|
|
|
gsl_log_act_info='POST is ABOUT...'
|
|
|
|
gsl_log_act_slug='POST-TITLE'
|
2022-02-27 19:16:16 +01:00
|
|
|
gsl_log_act_code='NBR : FILENAME : Alt Text'
|
2022-02-13 17:58:25 +01:00
|
|
|
gsl_log_act_image='NBR : NAME : ALT TEXT'
|
|
|
|
gsl_log_act_abbr='SHORT : LONG'
|
|
|
|
gsl_log_act_h1='#1 POST CONTENT TITLE'
|
2022-02-27 19:16:16 +01:00
|
|
|
gsl_log_act_link='NAME : URL : Alt Text'
|
|
|
|
gsl_log_act_file='NAME : FILENAME : Alt Text'
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
2022-02-27 19:16:16 +01:00
|
|
|
# Set LOG for Process Type
|
2022-02-16 14:11:41 +01:00
|
|
|
#-----------------------------------------------------------------------
|
2022-02-27 19:16:16 +01:00
|
|
|
gsl_log_h_link="Header Link"
|
|
|
|
gsl_log_h_abbr="Header ABBR"
|
|
|
|
gsl_log_h_code="Header Code"
|
|
|
|
gsl_log_h_image="Header Image"
|
|
|
|
gsl_log_h_file="Header File"
|
|
|
|
gsl_log_h_image="Header Image"
|
|
|
|
|
|
|
|
gsl_log_c_h1="Content Begins"
|
|
|
|
gsl_log_c_p="Content Paragraphs"
|
|
|
|
gsl_log_c_cite="Content Citations"
|
|
|
|
gsl_log_c_link="Content Link"
|
|
|
|
gsl_log_c_abbr="Content ABBR"
|
|
|
|
gsl_log_c_code="Content Code"
|
|
|
|
gsl_log_c_image="Content Image"
|
|
|
|
gsl_log_c_file="Content File"
|
2022-02-16 14:11:41 +01:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# Set CONTENT POST markers
|
2022-02-13 17:58:25 +01:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
gsl_mo_p='('
|
|
|
|
gsl_mc_p=')'
|
2022-04-07 14:58:26 +02:00
|
|
|
gsl_mark_file='__'
|
2022-03-02 14:27:50 +01:00
|
|
|
gsl_mark_image='_image'
|
2022-03-05 19:25:04 +01:00
|
|
|
gsl_mark_fcode='_code'
|
2022-02-13 17:58:25 +01:00
|
|
|
gsl_mark_title='#'
|
2022-03-01 12:39:16 +01:00
|
|
|
gsl_mark_bold='\*'
|
|
|
|
gsl_mark_strong='\*\*'
|
|
|
|
gsl_mark_italic='\/'
|
|
|
|
gsl_mark_code="¤"
|
2022-02-27 19:16:16 +01:00
|
|
|
gsl_mark_list='='
|
2022-04-23 17:51:46 +02:00
|
|
|
gsl_mark_listo="+"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
2022-03-01 12:39:16 +01:00
|
|
|
|
2022-02-13 17:58:25 +01:00
|
|
|
gsl_mark_blockquote='---'
|
|
|
|
gsl_mark_blockquote_cite='_cite :'
|
|
|
|
gsl_mark_blockquote_year='_year :'
|
|
|
|
gsl_mark_blockquote_link='_link :'
|
|
|
|
gsl_mark_blockquote_book='_book :'
|
|
|
|
gsl_mark_blockquote_lang='_lang :'
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# Set HEADERS markers
|
|
|
|
#-----------------------------------------------------------------------
|
2022-02-17 11:03:25 +01:00
|
|
|
# type: page / post
|
|
|
|
gsl_marker_type='type: '
|
2022-02-16 14:11:41 +01:00
|
|
|
gsl_marker_title='title: '
|
|
|
|
gsl_marker_slug='slug: '
|
|
|
|
gsl_marker_info='info: '
|
|
|
|
gsl_marker_author='author: '
|
|
|
|
gsl_marker_date='date: '
|
|
|
|
gsl_marker_tags='tags: '
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
|
|
#Optional (include brut text)
|
2022-02-16 14:11:41 +01:00
|
|
|
gsl_marker_code='code: '
|
|
|
|
gsl_marker_image='image: '
|
|
|
|
gsl_marker_abbr='abbr: '
|
|
|
|
gsl_marker_link='link: '
|
|
|
|
gsl_marker_file='file: '
|
2022-03-01 12:39:16 +01:00
|
|
|
|
|
|
|
# Delimiters to seet for sed in case exists in inline-code
|
|
|
|
gsl_d=(\, \. \? \% \# \- \: \^ \/ \_ \| )
|
2022-03-06 15:57:20 +01:00
|
|
|
|
2022-03-27 18:46:48 +02:00
|
|
|
# Onlinde Repo
|
|
|
|
repo="https://git.a-lec.org/echolib/gsl/-/raw/main/usr/local/bin/gsl"
|
|
|
|
repo_tar="https://git.a-lec.org/echolib/gsl/-/archive/main/gsl-main.tar.gz"
|