This repository has been archived on 2022-08-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Backend/config.ts
Mondei1 aa2147d509 External providers can now be loaded
Implemented invoice protocol (see docs)
2020-12-29 00:09:40 +01:00

57 lines
1.3 KiB
TypeScript

import { CryptoUnits } from './src/helper/types';
/**
* Here you can change various settings like database credentials, http settings and more.
*
* Debug mode and MongoDB credentials are set via enviroment variables for security reasons.
*/
export const config: IConfig = {
authentification: {
pepper: 'J3%_zö\\^',
salt_length: 8,
argonTimecost: 8,
minPasswordLength: 4,
maxPasswordLength: 150
},
http: {
port: 2009,
host: "0.0.0.0"
},
transcations: {
// If a payment has been made and its value is this amount less, it would be still accepted.
acceptMargin: 0.00000001
},
payment: {
// This is a list of cryptocurrencies that you want to accpet.
methods: [
CryptoUnits.BITCOIN,
CryptoUnits.DOGECOIN,
CryptoUnits.ETHEREUM,
CryptoUnits.MONERO
]
}
}
/**
* END OF CONFIG
* ====================
*/
export interface IConfig {
authentification: {
pepper: string,
salt_length: number,
argonTimecost: number,
minPasswordLength: number,
maxPasswordLength: number
},
http: {
port: number,
host: string
},
transcations: {
acceptMargin: number
},
payment: {
methods: CryptoUnits[];
}
}