aboutsummaryrefslogtreecommitdiff
path: root/web/NetUseAdminWeb/environments
diff options
context:
space:
mode:
Diffstat (limited to 'web/NetUseAdminWeb/environments')
-rw-r--r--web/NetUseAdminWeb/environments/development.yml36
-rw-r--r--web/NetUseAdminWeb/environments/production.yml29
2 files changed, 65 insertions, 0 deletions
diff --git a/web/NetUseAdminWeb/environments/development.yml b/web/NetUseAdminWeb/environments/development.yml
new file mode 100644
index 0000000..e4e01a9
--- /dev/null
+++ b/web/NetUseAdminWeb/environments/development.yml
@@ -0,0 +1,36 @@
+# NetUseMod is a program to moderate Usenet posts via web interface.
+# Copyright (C) 2024 Salahuddin <salahuddin@member.fsf.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# configuration file for development environment
+
+# the logger engine to use
+# console: log messages to STDOUT (your console where you started the
+# application server)
+# file: log message to a file in log/
+logger: "console"
+
+# the log level for this environment
+# core is the lowest, it shows Dancer2's core log messages as well as yours
+# (debug, info, warning and error)
+log: "core"
+
+# should Dancer2 show a stacktrace when an 5xx error is caught?
+# if set to yes, public/500.html will be ignored and either
+# views/500.tt, 'error_template' template, or a default error template will be used.
+show_stacktrace: 1
+
+# print the banner
+startup_info: 1
diff --git a/web/NetUseAdminWeb/environments/production.yml b/web/NetUseAdminWeb/environments/production.yml
new file mode 100644
index 0000000..4fe4eb0
--- /dev/null
+++ b/web/NetUseAdminWeb/environments/production.yml
@@ -0,0 +1,29 @@
+# NetUseMod is a program to moderate Usenet posts via web interface.
+# Copyright (C) 2024 Salahuddin <salahuddin@member.fsf.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+# configuration file for production environment
+
+# only log warning and error messsages
+log: "warning"
+
+# log message to a file in logs/
+logger: "file"
+
+# hide errors
+show_stacktrace: 0
+
+# disable server tokens in production environments
+no_server_tokens: 1