configure frontend and move recorder ingress

This commit is contained in:
Tobias Brunner 2020-01-26 21:27:34 +01:00
parent e2b13726b0
commit 2cacaf6502
3 changed files with 37 additions and 5 deletions

View file

@ -0,0 +1,23 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/ssl-redirect: "true"
labels:
app: recorder
name: frontend
namespace: owntracks
spec:
rules:
- host: whereis.tobru.ch
http:
paths:
- path: /
backend:
serviceName: frontend
servicePort: 80
tls:
- hosts:
- whereis.tobru.ch
secretName: whereis-tobru-ch-cert

View file

@ -10,13 +10,14 @@ metadata:
namespace: owntracks
spec:
rules:
- host: whereis.tobru.ch
- host: owntracks.tobru.ch
http:
paths:
- backend:
- path: /
backend:
serviceName: owntracks
servicePort: 8083
tls:
- hosts:
- whereis.tobru.ch
secretName: whereis-tobru-ch-cert
- owntracks.tobru.ch
secretName: owntracks-tobru-ch-cert

View file

@ -6,4 +6,12 @@ data:
config.js: |
// Here you can overwite the default configuration values
window.owntracks = window.owntracks || {};
window.owntracks.config = {};
window.owntracks.config = {
map: {
center: {
lat: 47.387963765838066,
lng: 8.45552444458008,
},
zoom: 13,
},
};