Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117753839
nextcloud-deployment.yaml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
nextcloud-deployment.yaml
View Options
{{
- if and .Values.nextcloud.enabled -
}}
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
nextcloud
annotations
:
alpha.image.policy.openshift.io/resolve-names
:
'*'
spec
:
selector
:
matchLabels
:
app
:
nextcloud
replicas
:
1
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
nextcloud
spec
:
containers
:
-
name
:
nextcloud
image
:
{{
.Values.image.nextcloudImage
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
resources
:
{{
- toYaml .Values.nextcloud.resources | nindent 10
}}
volumeMounts
:
-
name
:
data-volume
mountPath
:
/var/www/html/
-
name
:
config-volume
mountPath
:
/etc/apache2/sites-available/000-default.conf
subPath
:
000-default.conf
-
name
:
config-volume
mountPath
:
/etc/apache2/ports.conf
subPath
:
ports.conf
-
name
:
scripts-volume
mountPath
:
/docker-entrypoint-hooks.d/post-installation/init.sh
subPath
:
init.sh
env
:
-
name
:
APP_DOMAIN
value
:
{{
template "kolab.websiteDomain" .
}}
-
name
:
TRUSTED_PROXIES
value
:
"127.0.0.1"
-
name
:
NEXTCLOUD_TRUSTED_DOMAINS
value
:
{{
template "kolab.websiteDomain" .
}}
-
name
:
NEXTCLOUD_ADMIN_USER
value
:
"admin"
-
name
:
NEXTCLOUD_ADMIN_PASSWORD
value
:
"Welcome2Kolab"
-
name
:
SQLITE_DATABASE
value
:
"nextcloud"
-
name
:
OVERWRITEHOST
value
:
"{{
template
"
kolab.websiteDomain" . }}"
-
name
:
OVERWRITEPROTOCOL
value
:
"https"
-
name
:
OVERWRITECLIURL
value
:
"http://127.0.0.1/"
-
name
:
OVERWRITEWEBROOT
value
:
"/nextcloud"
ports
:
-
containerPort
:
8080
name
:
nextcloud
protocol
:
TCP
# readinessProbe:
# httpGet:
# path: /nextcloud
# port: nextcloud
# initialDelaySeconds: 2
# periodSeconds: 3
# livenessProbe:
# httpGet:
# path: /nextcloud
# port: nextcloud
# initialDelaySeconds: 10
# periodSeconds: 10
volumes
:
-
name
:
config-volume
configMap
:
name
:
nextcloud-config
-
name
:
scripts-volume
configMap
:
name
:
nextcloud-scripts
defaultMode
:
0777
-
name
:
data-volume
emptyDir
:
{}
---
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
nextcloud-config
data
:
000-default.conf
:
|
<VirtualHost *:8080>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /nextcloud /var/www/html
<Directory "/var/www/html">
Options +FollowSymLinks
AllowOverride None
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(nextcloud)
RewriteRule ^[a-zA-Z0-9]{16}/(.*) /%1/$1 [PT,L]
</ifModule>
</Directory>
</VirtualHost>
ports.conf
:
|
Listen 8080
---
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
nextcloud-scripts
data
:
init.sh
:
|
#!/bin/bash
cd /var/www/html
./occ config:system:set allow_local_remote_servers --value=true
{{
- if and .Values.nextcloud.oauthClientId
}}
./occ app:install user_oidc
./occ user_oidc:provider "Kolab" \
--clientid="{{ .Values.nextcloud.oauthClientId }}" \
--clientsecret="{{ .Values.nextcloud.oauthClientSecret }}" \
--discoveryuri="https://{{ .Values.domainName }}/.well-known/openid-configuration" \
--unique-uid=0 \
--scope "openid email uuid groups profile" \
--mapping-uid=uuid \
--mapping-display-name=profile.name \
--mapping-groups=groups \
--group-provisioning=1 \
--group-whitelist-regex='/.*/' \
--resolve-nested-claims=1
{{
- end
}}
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
nextcloud
spec
:
selector
:
app
:
nextcloud
ports
:
-
name
:
webserver
protocol
:
TCP
port
:
80
targetPort
:
8080
{{
- end
}}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 6:14 AM (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
77/b8/bd12342c04b03d98cb8b3a39eec1
Default Alt Text
nextcloud-deployment.yaml (4 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline