1
0
Fork 0
auth.rxbn.de/README.md

22 lines
1.1 KiB
Markdown
Raw Normal View History

2019-06-17 01:11:28 +00:00
# [auth.rxbn.de](https://auth.rxbn.de) - Single sign-on (SSO) Service
2020-09-26 20:46:31 +00:00
Single sign-on authentication service for rxbn.de services
# Environment variables
- __*DB_URL*__ := [MongoDB Connection URI String Format](https://docs.mongodb.com/manual/reference/connection-string/), ex.: mongodb://mongoDBUser:mongoDBPassword@localhost:27017/admin
- __*DB_NAME*__ := MongoDB Database, ex.: authRxbn
- __*SESSION_KEY*__ := SessionKey to encrypt sessions
- __*COOKIE_KEY*__ := CookieKey to encrypt cookies
- __*PROMETHEUS_USER*__ := PrometheusUser for basic authentication on prometheus endpoints, ex.: test
- __*PROMETHEUS_PW*__ := PrometheusPassword for basic authentication on prometheus endpoints, ex.: test
2019-06-01 20:35:59 +00:00
# start server
2020-09-16 16:52:28 +00:00
## regular
2019-06-01 20:35:59 +00:00
```sh
2020-09-26 20:23:52 +00:00
$ DB_URL="mongodb://user:pass@ip:port/authdb" DB_NAME="authRxbn" SESSION_KEY="32byteHexString" COOKIE_KEY="32byteHexString" PROMETHEUS_USER="authUsername" PROMETHEUS_PW="authPassword" node app.js
2019-06-01 20:35:59 +00:00
```
2020-09-16 16:52:28 +00:00
## debug
2019-06-01 20:35:59 +00:00
```sh
2020-09-26 20:23:52 +00:00
$ DB_URL="mongodb://user:pass@ip:port/authdb" DB_NAME="authRxbn" SESSION_KEY="32byteHexString" COOKIE_KEY="32byteHexString" PROMETHEUS_USER="authUsername" PROMETHEUS_PW="authPassword" NODE_ENV=debug node app.js
2019-06-01 20:35:59 +00:00
```