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
ports:
- containerPort: 3000
env:
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
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
envFrom:
- secretRef:
name: drone-secrets

View file

@ -46,4 +46,8 @@ spec:
- secretKey: DRONE_DATABASE_DATASOURCE
remoteRef:
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."staging.galerievanslagmaat.nl" = k8sProxy;
virtualHosts."galerie-staging.asraphiel.dev" = k8sProxy;
virtualHosts."www.galerievanslagmaat.nl" = {
forceSSL = true;
enableACME = true;
http2 = true;
globalRedirect = "galerievanslagmaat.nl";
};
virtualHosts."www.galerievanslagmaat.nl" = redirect "galerievanslagmaat.nl";
virtualHosts."galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
virtualHosts."www.galeriewoerden.nl" = redirect "galerievanslagmaat.nl";
};
services.prometheus.exporters.nginx.enable = true;