diff --git a/.gitignore b/.gitignore index 66a7658..24fd4f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ # Mico logs: log.txt -# Mby someday the WS-access logs -# Mby storage +node_modules/ +config/* +!config/config.example.yaml +storage/* +html/data/* diff --git a/config/admin.yaml b/config/admin.yaml index 3687410..2af9aa4 100644 --- a/config/admin.yaml +++ b/config/admin.yaml @@ -1 +1 @@ -passhash: zbTuKuppzGqDMxu+ltwsqpopnSEynvsDNvwCqC4YOag= +passhash: MFPgsnQ5GlRQI2Nr6h2uZDVsrLnpjrVQN8x1X1tW9dk= diff --git a/config/config.yaml b/config/config.yaml index 2d366a3..e9a511c 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -8,27 +8,30 @@ # especially not non strings into boolean entrys # (strings are the things with "quotes" and booleans are true / false) -logging: 1337 # adjust logging levels +logging: 0 # adjust logging levels # -1 - none # 0 - basic (Logs new comments) # 10 - datahorder (Logs everything (all requests with ip + timestamp)) # 1337 - haxxer (JUST FOR DEBUGGING (and cool looks)) (takes everything from datahorder and just prints it out) -logfile: "logs/log.log" # logfile +logfile: "log.txt" # logfile -ipget_endpoint_set: "//ipget.com?setto=${TOKEN}" # endpoint for setting token to ip ${TOKEN} beeing replaced with random char string which is send to server as "ip" -ipget_endpoint_get: "//ipget.com?get=${TOKEN}" # ${TOKEN} beeing replaced with token from client +listening_port: 5501 +listening_addr: "127.0.0.1" + +ipget_endpoint_set: "//derzombiiie.com/getip.php?settoken=${TOKEN}" # endpoint for setting token to ip ${TOKEN} beeing replaced with random char string which is send to server as "ip" +ipget_endpoint_get: "//derzombiiie.com/getip.php?token=${TOKEN}" # ${TOKEN} beeing replaced with token from client cl: true # enable / disable interactive-ish shell # GET with "settoken" // (random by client) saves ip with that token # content config: -site_name: "a-blog" +site_name: "derzombiiie.com" search_enable: true # enable / disable search commenting_enabled: true # enable / disable ability to comment bellow articles # post ranking config: -post_ranking_auto: 43200 # time in seconds, posts are autoranked | -1 for not at all (default is 12h aka. 43200) +post_ranking_auto: 215100 # time in seconds, posts are autoranked | -1 for not at all (default is 12h aka. 43200) index_post_sort: "new" # sorting used for index page # new | hot (planned are: manual, rit (like reddits "hot")) diff --git a/config/config.yaml.example b/config/config.yaml.example new file mode 100644 index 0000000..fd8e63b --- /dev/null +++ b/config/config.yaml.example @@ -0,0 +1,41 @@ +# GENERAL ABOUT THIS CONFIG FILE: +# there are no "fallback" values, +# anything in here is required to be set to something +# a backup copy of the default file is recommended + +# the way some values in this file are treeted may be unsafe +# DONT copy suspicious looking config entrys from the interwebz +# especially not non strings into boolean entrys +# (strings are the things with "quotes" and booleans are true / false) + +# listening +listening_port: 5501 # port server listening on +listening_addr: 127.0.0.1 # ip server is listening on + +logging: 0 # adjust logging levels +# -1 - none +# 0 - basic (Logs new comments) +# 10 - datahorder (Logs everything (all requests with ip + timestamp)) +# 1337 - haxxer (JUST FOR DEBUGGING (and cool looks)) (takes everything from datahorder and just prints it out) +logfile: "log.txt" # logfile + +ipget_endpoint_set: "//example.com/set/${TOKEN}" # endpoint for setting token to ip ${TOKEN} beeing replaced with random char string which is send to server as "ip" +ipget_endpoint_get: "//example.com/get/${TOKEN}" # ${TOKEN} beeing replaced with token from client +cl: true # enable / disable interactive-ish shell +# GET with "settoken" // (random by client) saves ip with that token + +# content config: +site_name: "a-blog" + +search_enable: true # enable / disable search + +commenting_enabled: true # enable / disable ability to comment bellow articles + +# post ranking config: +post_ranking_auto: 43200 # time in seconds, posts are autoranked | -1 for not at all (default is 12h aka. 43200) +index_post_sort: "new" # sorting used for index page +# new | hot (planned are: manual, rit (like reddits "hot")) + +# file access config: +comment_sync_on_write: false # sync comments everytime a comment gets edited / created / deleted +comment_auto_sync: 360 # interval in seconds, comments are synced to disk | -1 for not at all diff --git a/html/impressum.html b/html/impressum.html index 7c85599..87b3c83 100644 --- a/html/impressum.html +++ b/html/impressum.html @@ -5,7 +5,7 @@ -