mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
Update GreenlockUtil configuration paths
This commit is contained in:
parent
00b5453b3f
commit
1f786699d2
@ -1 +0,0 @@
|
||||
{"manager":"/usr/src/app/FeatureSet/Workers/Utils/Greenlock/Manager.ts","configDir":"./greenlock.d"}
|
@ -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',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
1
CommonServer/Utils/Greenlock/greenlockrc
Normal file
1
CommonServer/Utils/Greenlock/greenlockrc
Normal file
@ -0,0 +1 @@
|
||||
{"manager":"/usr/src/CommonServer/Utils/Greenlock/Manager.ts","configDir":"./greenlock.d"}
|
Loading…
Reference in New Issue
Block a user