Update Greenlock packageRoot path in StatusPageCerts.ts and app.yaml

This commit is contained in:
Simon Larsen
2024-04-23 16:39:43 +01:00
parent f716ece35f
commit ca89818cc1
4 changed files with 13 additions and 2 deletions

5
.gitignore vendored
View File

@@ -107,4 +107,7 @@ InfrastructureAgent/build/*
InfrastructureAgent/err.log
InfrastructureAgent/out.log
InfrastructureAgent/daemon.pid
InfrastructureAgent/daemon.pid
App/greenlock/.greenlockrc
App/greenlock/greenlock.d/config.json
App/greenlock/greenlock.d/config.json.bak

View File

@@ -23,7 +23,7 @@ const router: ExpressRouter = Express.getRouter();
const greenlock: any = Greenlock.create({
configFile: '/usr/src/app/FeatureSet/Workers/greenlockrc',
packageRoot: `/usr/src/app`,
packageRoot: `/usr/src/app/greenlock`,
manager: '/usr/src/app/FeatureSet/Workers/Utils/Greenlock/Manager.ts',
approveDomains: async (opts: any) => {
const domain: StatusPageDomain | null =

1
App/greenlock/README.md Normal file
View File

@@ -0,0 +1 @@
# This directory is for the .greenlockrc file

View File

@@ -22,6 +22,10 @@ spec:
date: "{{ now | unixEpoch }}"
appname: oneuptime
spec:
volumes:
- name: greenlockrc
emptyDir:
sizeLimit: "1Gi"
{{- if $.Values.podSecurityContext }}
securityContext: {{- $.Values.podSecurityContext | toYaml | nindent 8 }}
{{- end }}
@@ -37,6 +41,9 @@ spec:
containers:
- image: {{ printf "%s/%s/%s:%s" $.Values.image.registry $.Values.image.repository "app" $.Values.image.tag }}
name: {{ printf "%s-%s" $.Release.Name "app" }}
volumeMounts:
- name: greenlockrc
mountPath: "/usr/src/app/greenlock/.greenlockrc"
{{- if $.Values.containerSecurityContext }}
securityContext: {{- $.Values.containerSecurityContext | toYaml | nindent 12 }}
{{- end }}