Reworked logs, added config file (#31)
Reworked error logs: clearer, trimmed Added Info logs Added configuration file Closes #30 Closes #5 Co-authored-by: Nicolas Herry <beastieboy@beastieboy.net> Reviewed-on: #31pull/32/head
parent
ef0d90fb6c
commit
63298870c3
@ -0,0 +1,34 @@ |
||||
# Example configuration file for marmotte |
||||
# Copy and edit to suits your needs |
||||
|
||||
# Host the sockets will be bound to |
||||
host: localhost |
||||
|
||||
# Port the sockets will be bound to |
||||
# Note: On Unix-like systems, to listen to ports below 1024 a process must run as a privileged user |
||||
port: 7070 |
||||
|
||||
# Network transport protocol the server will create the sockets with |
||||
# Today, only tcp makes sense here |
||||
transport: tcp |
||||
|
||||
# The directory where gopher resources can be found |
||||
# The directory must be readable by the user running the server |
||||
root: /usr/local/marmotte |
||||
|
||||
# When not shipping logs to an aggregator, set this to a writable file |
||||
# To print on stdout and/or use a logshipper, comment out the following line |
||||
logfile: /var/log/marmotte |
||||
|
||||
# The directory alias for users' gopherspaces |
||||
# The path is relative to the root directory |
||||
users_gopherspace: /users |
||||
|
||||
# The path to the directory containing the error templates (10.gt, 20.gt, 30.gt, etc.) |
||||
# The path is relative to the root directory |
||||
errors: /errors |
||||
|
||||
# Whether log level should be set to debug |
||||
debug: false |
||||
|
||||
|
Loading…
Reference in new issue