Remove Gitea's SSH as entrypoint/possible attackvector
This commit is contained in:
parent
6892ae9ef6
commit
51e42ce1f3
@ -1,11 +1,10 @@
|
|||||||
ports:
|
ports:
|
||||||
|
rtmp:
|
||||||
|
port: 1935
|
||||||
|
exposedPort: 1935
|
||||||
|
expose: true
|
||||||
web:
|
web:
|
||||||
# port: 80
|
|
||||||
# exposedPort: 80
|
|
||||||
redirectTo: websecure
|
redirectTo: websecure
|
||||||
# websecure:
|
|
||||||
# port: 443
|
|
||||||
# exposedPort: 443
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: traefik-configmap
|
- name: traefik-configmap
|
||||||
@ -17,8 +16,6 @@ persistence:
|
|||||||
accessMode: ReadWriteMany
|
accessMode: ReadWriteMany
|
||||||
path: /data
|
path: /data
|
||||||
existingClaim: "traefik"
|
existingClaim: "traefik"
|
||||||
# size: 1Gi
|
|
||||||
# subPath: 'acme.json'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: CF_API_EMAIL
|
- name: CF_API_EMAIL
|
||||||
|
@ -9,6 +9,8 @@ data:
|
|||||||
checkNewVersion: true
|
checkNewVersion: true
|
||||||
sendAnonymousUsage: true
|
sendAnonymousUsage: true
|
||||||
entryPoints:
|
entryPoints:
|
||||||
|
rtmp:
|
||||||
|
address: :1935
|
||||||
web:
|
web:
|
||||||
address: :8000
|
address: :8000
|
||||||
websecure:
|
websecure:
|
||||||
@ -42,8 +44,6 @@ data:
|
|||||||
# - "127.0.0.0/8"
|
# - "127.0.0.0/8"
|
||||||
# - "192.168.5.0/24"
|
# - "192.168.5.0/24"
|
||||||
# - "192.168.11.0/24"
|
# - "192.168.11.0/24"
|
||||||
ssh:
|
|
||||||
address: :2222
|
|
||||||
traefik:
|
traefik:
|
||||||
address: :9000
|
address: :9000
|
||||||
providers:
|
providers:
|
||||||
|
@ -7,10 +7,6 @@ spec:
|
|||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
name: ui
|
name: ui
|
||||||
port: 3000
|
port: 3000
|
||||||
- protocol: TCP
|
|
||||||
name: ssh
|
|
||||||
port: 22
|
|
||||||
targetPort: ssh
|
|
||||||
selector:
|
selector:
|
||||||
app: gitea
|
app: gitea
|
||||||
---
|
---
|
||||||
@ -45,8 +41,6 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: ui
|
- name: ui
|
||||||
containerPort: 3000
|
containerPort: 3000
|
||||||
- name: ssh
|
|
||||||
containerPort: 22
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: flexvolsmb-gitea-data
|
name: flexvolsmb-gitea-data
|
||||||
@ -81,20 +75,6 @@ spec:
|
|||||||
middlewares:
|
middlewares:
|
||||||
- name: security-headers@file
|
- name: security-headers@file
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
kind: IngressRouteTCP
|
|
||||||
metadata:
|
|
||||||
name: gitea
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- ssh
|
|
||||||
routes:
|
|
||||||
- match: HostSNI(`*`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: gitea
|
|
||||||
port: 22
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user