Update GreenlockUtil configuration paths

This commit is contained in:
Simon Larsen 2024-04-28 13:16:53 +01:00
parent 00b5453b3f
commit 1f786699d2
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
3 changed files with 7 additions and 7 deletions

View File

@ -1 +0,0 @@
{"manager":"/usr/src/app/FeatureSet/Workers/Utils/Greenlock/Manager.ts","configDir":"./greenlock.d"}

View File

@ -10,16 +10,16 @@ import Greenlock from 'greenlock';
export default class GreenlockUtil {
private static greenLockInstance: any = null;
public static getGreenlockInstance(): any {
private static getGreenlockInstance(): any {
if (this.greenLockInstance) {
return this.greenLockInstance;
}
this.greenLockInstance = Greenlock.create({
configFile: '/usr/src/Common/FeatureSet/Workers/greenlockrc',
packageRoot: `/usr/src/app/greenlock`,
configFile: '//usr/src/CommonServer/Utils/Greenlock/greenlockrc',
packageRoot: `/usr/src/CommonServer/greenlock`,
manager:
'/usr/src/app/FeatureSet/Workers/Utils/Greenlock/Manager.ts',
'/usr/src/CommonServer/Utils/Greenlock/Manager.ts',
approveDomains: async (opts: any) => {
const domain: StatusPageDomain | null =
await StatusPageDomainService.findOneBy({
@ -44,7 +44,7 @@ export default class GreenlockUtil {
return opts; // or Promise.resolve(opts);
},
store: {
module: '/usr/src/app/FeatureSet/Workers/Utils/Greenlock/Store.ts',
module: '/usr/src/CommonServer/Utils/Greenlock/Store.ts',
},
// Staging for testing environments
// staging: IsDevelopment,
@ -68,7 +68,7 @@ export default class GreenlockUtil {
agreeToTerms: true,
challenges: {
'http-01': {
module: '/usr/src/app/FeatureSet/Workers/Utils/Greenlock/HttpChallenge.ts',
module: '/usr/src/CommonServer/Utils/Greenlock/HttpChallenge.ts',
},
},
});

View File

@ -0,0 +1 @@
{"manager":"/usr/src/CommonServer/Utils/Greenlock/Manager.ts","configDir":"./greenlock.d"}