Fix drone, update nginx

This commit is contained in:
Julius 2022-06-23 17:35:35 +02:00
parent 5d86ea92ac
commit 819fbcc226
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
3 changed files with 11 additions and 25 deletions

View file

@ -20,21 +20,6 @@ spec:
image: drone/drone-runner-kube:latest image: drone/drone-runner-kube:latest
ports: ports:
- containerPort: 3000 - containerPort: 3000
env: envFrom:
- name: DRONE_RPC_SECRET - secretRef:
valueFrom:
secretKeyRef:
name: drone-secrets name: drone-secrets
key: drone-rpc-secret
- name: DRONE_RPC_HOST
valueFrom:
secretKeyRef:
name: drone-secrets
key: drone-server-host
- name: DRONE_RPC_PROTO
valueFrom:
secretKeyRef:
name: drone-secrets
key: drone-server-proto
- name: DRONE_NAMESPACE_DEFAULT
value: drone

View file

@ -47,3 +47,7 @@ spec:
remoteRef: remoteRef:
key: k8s/drone key: k8s/drone
property: drone-db-url property: drone-db-url
- secretKey: DRONE_NAMESPACE_DEFAULT
remoteRef:
key: k8s/drone
property: namespace

View file

@ -89,12 +89,9 @@ in {
virtualHosts."galerie.asraphiel.dev" = k8sProxy; virtualHosts."galerie.asraphiel.dev" = k8sProxy;
virtualHosts."staging.galerievanslagmaat.nl" = k8sProxy; virtualHosts."staging.galerievanslagmaat.nl" = k8sProxy;
virtualHosts."galerie-staging.asraphiel.dev" = k8sProxy; virtualHosts."galerie-staging.asraphiel.dev" = k8sProxy;
virtualHosts."www.galerievanslagmaat.nl" = { virtualHosts."www.galerievanslagmaat.nl" = redirect "galerievanslagmaat.nl";
forceSSL = true; virtualHosts."galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
enableACME = true; virtualHosts."www.galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
http2 = true;
globalRedirect = "galerievanslagmaat.nl";
};
}; };
services.prometheus.exporters.nginx.enable = true; services.prometheus.exporters.nginx.enable = true;