Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
f3ab2841
Commit
f3ab2841
authored
Jun 18, 2020
by
Rosanny Sihombing
Browse files
set configuration
parent
e744c3d1
Changes
1
Show whitespace changes
Inline
Side-by-side
config/config.js
View file @
f3ab2841
...
...
@@ -2,14 +2,48 @@ module.exports = {
development
:
{
app
:
{
name
:
'
User Account Management
'
,
port
:
process
.
env
.
PORT
||
9989
port
:
process
.
env
.
PORT
||
9989
,
host
:
'
http://localhost:9989
'
},
passport
:
{
strategy
:
'
saml
'
,
saml
:
{
path
:
process
.
env
.
SAML_PATH
||
'
/saml/SSO
'
,
entryPoint
:
process
.
env
.
SAML_ENTRY_POINT
||
'
https://m4lab.hft-stuttgart.de/idp/saml2/idp/SSOService.php
'
,
issuer
:
'
sp-account.m4lab.hft-stuttgart.de
'
,
//local metadata
logoutUrl
:
'
https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php
'
}
},
database
:
{
host
:
'
localhost
'
,
// DB host
user
:
'
DBManager
'
,
// DB username
password
:
'
Stuttgart2019
'
,
// DB password
port
:
3306
,
// MySQL port
dbUser
:
'
userdb
'
,
// User DB
host_project
:
'
localhost
'
,
// DB host project db
dbProject
:
'
projectDB
'
// Project DB
},
mailer
:
{
host
:
'
mail.hft-stuttgart.de
'
,
// hostname
secureConnection
:
false
,
// TLS requires secureConnection to be false
port
:
587
,
// port for secure SMTP
authUser
:
'
ad
\\
support-transfer
'
,
authPass
:
'
6laumri2
'
,
tlsCiphers
:
'
SSLv3
'
,
from
:
'
support-transfer@hft-stuttgart.de
'
,
}
},
testing
:
{
app
:
{
name
:
'
User Account Management
'
,
port
:
process
.
env
.
PORT
||
9989
,
host
:
'
https://m4lab.hft-stuttgart.de/account
'
},
passport
:
{
strategy
:
'
saml
'
,
saml
:
{
path
:
process
.
env
.
SAML_PATH
||
'
/saml/SSO
'
,
entryPoint
:
process
.
env
.
SAML_ENTRY_POINT
||
'
https://m4lab.hft-stuttgart.de/idp/saml2/idp/SSOService.php
'
,
//issuer: 'sp-account.m4lab.hft-stuttgart.de', //local metadata
issuer
:
'
sp-account-testing.m4lab.hft-stuttgart.de
'
,
//testing metadata
//issuer: 'sp-account-prod.m4lab.hft-stuttgart.de', //production metadata
logoutUrl
:
'
https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php
'
...
...
@@ -22,7 +56,6 @@ module.exports = {
port
:
3306
,
// MySQL port
dbUser
:
'
userdb
'
,
// User DB
host_project
:
'
m4lab.hft-stuttgart.de
'
,
// DB host project db
//host_project: 'localhost', // local
dbProject
:
'
projectDB
'
// Project DB
},
mailer
:
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment