fixed geoip tag
This commit is contained in:
@@ -55,75 +55,75 @@ spec:
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: gokapi
|
||||
image: f0rc3/gokapi:v2.1.0
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Europe/Budapest"
|
||||
- name: GOKAPI_PORT
|
||||
value: "53842"
|
||||
- name: GOKAPI_EXTERNAL_URL
|
||||
value: "https://fileshare.dooplex.hu/"
|
||||
- name: GOKAPI_LOCALHOST
|
||||
value: "false"
|
||||
- name: GOKAPI_USE_SSL
|
||||
value: "false"
|
||||
- name: GOKAPI_DATA_DIR
|
||||
value: "/app/data"
|
||||
- name: GOKAPI_CONFIG_DIR
|
||||
value: "/app/config"
|
||||
- name: GOKAPI_MAX_MEMORY_UPLOAD
|
||||
value: "100"
|
||||
- name: GOKAPI_LOG_STDOUT
|
||||
value: "true"
|
||||
# Initial admin user (only used for first setup)
|
||||
- name: GOKAPI_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: gokapi-app
|
||||
key: admin-username
|
||||
- name: GOKAPI_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: gokapi-app
|
||||
key: admin-password
|
||||
ports:
|
||||
- containerPort: 53842
|
||||
name: http
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/config
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
- name: gokapi
|
||||
image: f0rc3/gokapi:v2.1.0
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Europe/Budapest"
|
||||
- name: GOKAPI_PORT
|
||||
value: "53842"
|
||||
- name: GOKAPI_EXTERNAL_URL
|
||||
value: "https://fileshare.dooplex.hu/"
|
||||
- name: GOKAPI_LOCALHOST
|
||||
value: "false"
|
||||
- name: GOKAPI_USE_SSL
|
||||
value: "false"
|
||||
- name: GOKAPI_DATA_DIR
|
||||
value: "/app/data"
|
||||
- name: GOKAPI_CONFIG_DIR
|
||||
value: "/app/config"
|
||||
- name: GOKAPI_MAX_MEMORY_UPLOAD
|
||||
value: "100"
|
||||
- name: GOKAPI_LOG_STDOUT
|
||||
value: "true"
|
||||
# Initial admin user (only used for first setup)
|
||||
- name: GOKAPI_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: gokapi-app
|
||||
key: admin-username
|
||||
- name: GOKAPI_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: gokapi-app
|
||||
key: admin-password
|
||||
ports:
|
||||
- containerPort: 53842
|
||||
name: http
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/config
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: gokapi-config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: gokapi-data
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: gokapi-config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: gokapi-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -136,9 +136,9 @@ metadata:
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http
|
||||
port: 53842
|
||||
targetPort: http
|
||||
- name: http
|
||||
port: 53842
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/instance: gokapi
|
||||
app.kubernetes.io/name: gokapi
|
||||
@@ -159,36 +159,36 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
if ($geoip2_city_country_code != "HU") {
|
||||
if ($geoip2_country_code != "HU") {
|
||||
return 403 "Access restricted to Hungary";
|
||||
}
|
||||
spec:
|
||||
ingressClassName: nginx-internal
|
||||
rules:
|
||||
- host: fileshare.dooplex.hu
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gokapi
|
||||
port:
|
||||
number: 53842
|
||||
- host: fileshare.home
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gokapi
|
||||
port:
|
||||
number: 53842
|
||||
- host: fileshare.dooplex.hu
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gokapi
|
||||
port:
|
||||
number: 53842
|
||||
- host: fileshare.home
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gokapi
|
||||
port:
|
||||
number: 53842
|
||||
tls:
|
||||
- hosts:
|
||||
- fileshare.dooplex.hu
|
||||
secretName: gokapi-tls
|
||||
- hosts:
|
||||
- fileshare.dooplex.hu
|
||||
secretName: gokapi-tls
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
@@ -202,7 +202,7 @@ metadata:
|
||||
recurring-job.longhorn.io/source: enabled
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
@@ -220,8 +220,8 @@ metadata:
|
||||
recurring-job.longhorn.io/source: enabled
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
storage: 50Gi
|
||||
|
||||
Reference in New Issue
Block a user