Compare commits
2 Commits
ac0d92654a
...
663049fb89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
663049fb89 | ||
|
|
40d4c92271 |
@@ -89,10 +89,57 @@ cronjob:
|
|||||||
|
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
|
|
||||||
|
extraInitContainers:
|
||||||
|
- name: data-folder-structure-fix
|
||||||
|
image: busybox
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
# Create only parents
|
||||||
|
mkdir -p /mnt/users
|
||||||
|
mkdir -p /mnt/shared
|
||||||
|
|
||||||
|
# Fix permissions on parents pvc folder data-folder-structure
|
||||||
|
chown 33:33 /mnt/users
|
||||||
|
chown 33:33 /mnt/shared
|
||||||
|
chown 33:33 /mnt/users/marcio.fernandes
|
||||||
|
chown 33:33 /mnt/users/marcio.fernandes/Documents
|
||||||
|
chown 33:33 /mnt/users/marcio.fernandes/Photos
|
||||||
|
chown 33:33 /mnt/shared/Gaming
|
||||||
|
chown 33:33 /mnt/shared/Music
|
||||||
|
chown 33:33 /mnt/shared/Videos
|
||||||
|
chown 33:33 /mnt/shared/NerdStuff
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: data-folder-structure
|
||||||
|
mountPath: /mnt
|
||||||
|
- name: mf-nextcloud
|
||||||
|
mountPath: /mnt/users/marcio.fernandes
|
||||||
|
- name: mf-documents
|
||||||
|
mountPath: /mnt/users/marcio.fernandes/Documents
|
||||||
|
- name: mf-photos
|
||||||
|
mountPath: /mnt/users/marcio.fernandes/Photos
|
||||||
|
- name: media-gaming
|
||||||
|
mountPath: /mnt/shared/Gaming
|
||||||
|
- name: media-music
|
||||||
|
mountPath: /mnt/shared/Music
|
||||||
|
- name: media-videos
|
||||||
|
mountPath: /mnt/shared/Videos
|
||||||
|
- name: it-storage
|
||||||
|
mountPath: /mnt/shared/NerdStuff
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 33
|
||||||
|
runAsGroup: 33
|
||||||
|
fsGroup: 33
|
||||||
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
|
||||||
phpConfigs:
|
phpConfigs:
|
||||||
php.ini: |-
|
php.ini: |-
|
||||||
memory_limit = 512M
|
memory_limit = 512M
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
|
|
||||||
- name: mf-documents
|
- name: mf-documents
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mf-documents-limbosolutions-com
|
claimName: mf-documents-limbosolutions-com
|
||||||
@@ -114,9 +161,14 @@ nextcloud:
|
|||||||
- name: mf-nextcloud
|
- name: mf-nextcloud
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mf-nextcloud-limbosolutions-com
|
claimName: mf-nextcloud-limbosolutions-com
|
||||||
|
- name: data-folder-structure
|
||||||
|
emptyDir: {}
|
||||||
|
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
|
|
||||||
|
- name: data-folder-structure
|
||||||
|
mountPath: /mnt
|
||||||
|
|
||||||
- name: mf-nextcloud
|
- name: mf-nextcloud
|
||||||
mountPath: /mnt/users/marcio.fernandes
|
mountPath: /mnt/users/marcio.fernandes
|
||||||
|
|
||||||
|
|||||||
@@ -15,47 +15,47 @@ spec:
|
|||||||
|
|
||||||
routes:
|
routes:
|
||||||
|
|
||||||
# AUTHENTIK OUTPOST
|
# # AUTHENTIK OUTPOST
|
||||||
- match: Host(`cloud.limbosolutions.com`) && PathPrefix(`/outpost.goauthentik.io`)
|
# - match: Host(`cloud.limbosolutions.com`) && PathPrefix(`/outpost.goauthentik.io`)
|
||||||
kind: Rule
|
# kind: Rule
|
||||||
services:
|
# services:
|
||||||
- name: ak-outpost-authentik-embedded-outpost
|
# - name: ak-outpost-authentik-embedded-outpost
|
||||||
namespace: id-limbosolutions-com
|
# namespace: id-limbosolutions-com
|
||||||
port: 9000
|
# port: 9000
|
||||||
|
|
||||||
|
|
||||||
# PUBLIC SHARES (NO SSO)
|
# # PUBLIC SHARES (NO SSO)
|
||||||
- match: Host(`cloud.limbosolutions.com`) &&
|
# - match: Host(`cloud.limbosolutions.com`) &&
|
||||||
(PathPrefix(`/s/`) ||
|
# (PathPrefix(`/s/`) ||
|
||||||
PathPrefix(`/index.php/s/`) ||
|
# PathPrefix(`/index.php/s/`) ||
|
||||||
PathPrefix(`/public.php/`) ||
|
# PathPrefix(`/public.php/`) ||
|
||||||
PathPrefix(`/remote.php/dav/public-files/`))
|
# PathPrefix(`/remote.php/dav/public-files/`))
|
||||||
kind: Rule
|
# kind: Rule
|
||||||
services:
|
# services:
|
||||||
- name: nextcloud
|
# - name: nextcloud
|
||||||
port: 8080
|
# port: 8080
|
||||||
middlewares:
|
# middlewares:
|
||||||
- name: rate-limit
|
# - name: rate-limit
|
||||||
- name: nextcloud-security-headers
|
# - name: nextcloud-security-headers
|
||||||
|
|
||||||
# Sync clients + mobile app (no SSO)
|
# # Sync clients + mobile app (no SSO)
|
||||||
- match: Host(`cloud.limbosolutions.com`) &&
|
# - match: Host(`cloud.limbosolutions.com`) &&
|
||||||
(PathPrefix(`/remote.php/dav`) ||
|
# (PathPrefix(`/remote.php/dav`) ||
|
||||||
PathPrefix(`/remote.php/webdav`) ||
|
# PathPrefix(`/remote.php/webdav`) ||
|
||||||
PathPrefix(`/remote.php/caldav`) ||
|
# PathPrefix(`/remote.php/caldav`) ||
|
||||||
PathPrefix(`/remote.php/carddav`) ||
|
# PathPrefix(`/remote.php/carddav`) ||
|
||||||
PathPrefix(`/ocs/v1.php`) ||
|
# PathPrefix(`/ocs/v1.php`) ||
|
||||||
PathPrefix(`/ocs/v2.php`) ||
|
# PathPrefix(`/ocs/v2.php`) ||
|
||||||
PathPrefix(`/status.php`) ||
|
# PathPrefix(`/status.php`) ||
|
||||||
PathPrefix(`/index.php/login/v2`) ||
|
# PathPrefix(`/index.php/login/v2`) ||
|
||||||
PathPrefix(`/index.php/login/v2/poll`))
|
# PathPrefix(`/index.php/login/v2/poll`))
|
||||||
kind: Rule
|
# kind: Rule
|
||||||
services:
|
# services:
|
||||||
- name: nextcloud
|
# - name: nextcloud
|
||||||
port: 8080
|
# port: 8080
|
||||||
middlewares:
|
# middlewares:
|
||||||
- name: webdav-strip-auth
|
# #- name: webdav-strip-auth
|
||||||
- name: rate-limit
|
# #- name: rate-limit
|
||||||
|
|
||||||
# 3) EVERYTHING ELSE (SSO REQUIRED)
|
# 3) EVERYTHING ELSE (SSO REQUIRED)
|
||||||
- match: Host(`cloud.limbosolutions.com`)
|
- match: Host(`cloud.limbosolutions.com`)
|
||||||
@@ -63,10 +63,10 @@ spec:
|
|||||||
services:
|
services:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
port: 8080
|
port: 8080
|
||||||
middlewares:
|
middlewares: []
|
||||||
#- name: authentik-forward-auth
|
#- name: authentik-forward-auth
|
||||||
- name: nextcloud-security-headers
|
#- name: nextcloud-security-headers
|
||||||
- name: rate-limit
|
#- name: rate-limit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user