Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NACSOS Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MCC APSIS
NACSOS
NACSOS Core
Commits
87fa6fae
Commit
87fa6fae
authored
3 years ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
add default configs
parent
447ef91c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/default.env
+9
-0
9 additions, 0 deletions
config/default.env
config/hypercorn.toml
+7
-0
7 additions, 0 deletions
config/hypercorn.toml
config/logging.conf
+43
-0
43 additions, 0 deletions
config/logging.conf
with
59 additions
and
0 deletions
config/default.env
0 → 100644
+
9
−
0
View file @
87fa6fae
SERVER__HOST="localhost"
SERVER__PORT=8081
SERVER__CORS_ORIGINS='["http://localhost:8081","http://localhost", "http://0.0.0.0:8081","http://0.0.0.0", "http://127.0.0.1:8081","http://127.0.0.1"]'
DB__HOST="nacsos_postgres"
DB__PORT=5432
DB__USER="root"
DB__PASSWORD="root"
DB__DATABASE="nacsos_core"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/hypercorn.toml
0 → 100644
+
7
−
0
View file @
87fa6fae
bind
=
'127.0.0.1:8081'
debug
=
true
access_log_format
=
'%(s)s | "%(R)s" | Size: %(b)s | Referrer: "%(f)s"'
workers
=
1
accesslog
=
'hypercorn.access'
errorlog
=
'hypercorn.error'
logconfig_dict
=
'config/logging.conf'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/logging.conf
0 → 100644
+
43
−
0
View file @
87fa6fae
version
:
1
disable_existing_loggers
:
off
formatters
:
default
:
():
server
.
util
.
logging
.
ColourFormatter
fmt
:
'%(asctime)s [%(levelnamec)s] %(name)s: %(message)s'
use_colors
:
on
process
:
format
:
'%(asctime)s [%(levelname)s] %(processName)-10s %(name)s: %(message)s'
access
:
format
:
'%(asctime)s [ REQ ] %(name)s: %(message)s'
handlers
:
default
:
level
:
DEBUG
formatter
:
default
class
:
logging
.
StreamHandler
stream
:
ext
://
sys
.
stdout
access
:
level
:
DEBUG
formatter
:
access
class
:
logging
.
StreamHandler
stream
:
ext
://
sys
.
stdout
loggers
:
hypercorn
.
access
:
handlers
: [
access
]
level
:
DEBUG
propagate
:
no
hypercorn
.
error
:
handlers
: [
default
]
level
:
DEBUG
nacsos
.
api
.
route
.
ping
:
handlers
: [
default
]
level
:
DEBUG
propagate
:
no
aiosqlite
:
level
:
ERROR
databases
:
level
:
ERROR
urllib3
.
connectionpool
:
level
:
FATAL
root
:
level
:
DEBUG
handlers
: [
default
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment