-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from aarranz/feature/ckan-2.8
Support CKAN 2.8
- Loading branch information
Showing
12 changed files
with
285 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
var config = {}; | ||
|
||
config.host = 'https://localhost'; | ||
config.port = 3000 | ||
|
||
// HTTPS enable | ||
config.https = { | ||
enabled: true, | ||
cert_file: 'certs/self_signed.crt', | ||
key_file: 'certs/self_signed.key', | ||
port: 443 | ||
}; | ||
|
||
// Config email list type to use domain filtering | ||
config.email_list_type = null // whitelist or blacklist | ||
|
||
// Secret for user sessions in web | ||
config.session = { | ||
secret: 'nodejs_idm', // Must be changed | ||
expires: 60 * 60 * 1000 // 1 hour | ||
} | ||
|
||
// Key to encrypt user passwords | ||
config.password_encryption = { | ||
key: 'nodejs_idm' // Must be changed | ||
} | ||
|
||
// Config oauth2 parameters | ||
config.oauth2 = { | ||
authorization_code_lifetime: 5 * 60, // Five minutes | ||
access_token_lifetime: 60 * 60, // One hour | ||
refresh_token_lifetime: 60 * 60 * 24 * 14 // Two weeks | ||
} | ||
|
||
// Config api parameters | ||
config.api = { | ||
token_lifetime: 60 * 60 // One hour | ||
} | ||
|
||
// Enable authzforce | ||
config.authzforce = { | ||
enabled: false, | ||
host: '', | ||
port: 8080 | ||
} | ||
|
||
var database_host = (process.env.DATABASE_HOST) ? process.env.DATABASE_HOST : 'localhost' | ||
|
||
// Database info | ||
config.database = { | ||
host: database_host, // default: 'localhost' | ||
password: 'idm', // default: 'idm' | ||
username: 'root', // default: 'root' | ||
database: 'idm', // default: 'idm' | ||
dialect: 'mysql', // default: 'mysql' | ||
port: undefined // default: undefined (which means that the port | ||
// is the default for each dialect) | ||
}; | ||
|
||
// External user authentication | ||
config.external_auth = { | ||
enabled: false, | ||
authentication_driver: 'custom_authentication_driver', | ||
database: { | ||
host: 'localhost', | ||
database: 'db_name', | ||
username: 'db_user', | ||
password: 'db_pass', | ||
user_table: 'user', | ||
dialect: 'mysql', | ||
port: undefined | ||
} | ||
} | ||
|
||
// Email configuration | ||
config.mail = { | ||
host: 'localhost', | ||
port: 25, | ||
from: 'noreply@localhost' | ||
} | ||
|
||
|
||
// Config themes | ||
config.site = { | ||
title: 'Identity Manager', | ||
theme: 'default' | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.