diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab4b1a8e8586160d77003abf93818f7ee22ae374..f6dfc49dac9cfec5688d8b2fc984db86a8e3ede8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ pages-testing: stage: deploy script: + - echo $configfiledevbase64 | base64 -d > ./config/config.js - npm install - "pm2 delete --silent project || :" - pm2 start ./app.js --name=project diff --git a/config/config.js b/config/config.js index ae67f3136353f12b7383343768c4358bc8b121c2..8fa365a877e9a24f979909a28f3aba97a12faa18 100644 --- a/config/config.js +++ b/config/config.js @@ -8,27 +8,27 @@ module.exports = { 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-project.m4lab.hft-stuttgart.de', - logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php' + entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry URL', + issuer: 'saml issuer URL', + logoutUrl: 'saml Logout URL' } }, database: { - user: 'DBManager', // DB username - password: 'Stuttgart2019', // DB password + user: 'usernamedb', // DB username + password: 'passworddb', // DB password port: 3306, // MySQL port dbUser: 'userdb', // User DB host_project: 'localhost', // local - dbProject: 'projectDB' // Project DB + dbProject: 'projectdb' // Project DB }, mailer: { - host: 'mail.hft-stuttgart.de', // hostname + host: 'mailhost', // hostname secureConnection: false, // TLS requires secureConnection to be false port: 587, // port for secure SMTP - authUser: 'ad\\support-transfer', - authPass: '6laumri2', + authUser: 'usernamemail', + authPass: 'passwordmail', tlsCiphers: 'SSLv3', - from: 'support-transfer@hft-stuttgart.de', + from: 'email_from', } }, testing: { @@ -40,28 +40,27 @@ module.exports = { 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-project-testing.m4lab.hft-stuttgart.de', - logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php' + entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry URL', + issuer: 'saml issuer URL', + logoutUrl: 'saml Logout URL' } }, database: { - host: 'transfer.hft-stuttgart.de', // DB host - user: 'DBManager', // DB username - password: 'Stuttgart2019', // DB password + user: 'usernamedb', // DB username + password: 'passworddb', // DB password port: 3306, // MySQL port dbUser: 'userdb', // User DB - host_project: 'm4lab.hft-stuttgart.de', // DB host project db - dbProject: 'projectDB' // Project DB + host_project: 'localhost', // local + dbProject: 'projectdb' // Project DB }, mailer: { - host: 'mail.hft-stuttgart.de', // hostname + host: 'mailhost', // hostname secureConnection: false, // TLS requires secureConnection to be false port: 587, // port for secure SMTP - authUser: 'ad\\support-transfer', - authPass: '6laumri2', + authUser: 'usernamemail', + authPass: 'passwordmail', tlsCiphers: 'SSLv3', - from: 'support-transfer@hft-stuttgart.de', + from: 'email_from', } }, production: {