Skip to content

Commit

Permalink
fix(kubenuc,nextcloud): Remove rverse proxy config php file which is …
Browse files Browse the repository at this point in the history
…now created by the chart

Signed-off-by: Daniele De Lorenzi <[email protected]>
  • Loading branch information
dark-vex committed Aug 22, 2024
1 parent 4700226 commit f70d38f
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions clusters/kubenuc/apps/nextcloud/manifests/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,52 +47,14 @@ spec:
hosts:
- nx.fastnetserv.cloud
nextcloud:
trustedDomains: ['10.10.8.20']
host: nx.fastnetserv.cloud
## Use an existing secret
existingSecret:
enabled: true
secretName: nextcloud
usernameKey: nextcloud-username
passwordKey: nextcloud-password
configs:
reverse-proxy.config.php: |-
<?php
$overwriteHost = getenv('OVERWRITEHOST');
if ($overwriteHost) {
$CONFIG['overwritehost'] = $overwriteHost;
}
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
if ($overwriteProtocol) {
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
}
$overwriteCliUrl = getenv('OVERWRITECLIURL');
if ($overwriteCliUrl) {
$CONFIG['overwrite.cli.url'] = $overwriteCliUrl;
}
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
if ($overwriteWebRoot) {
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
}
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
if ($overwriteCondAddr) {
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
}
$trustedProxies = getenv('TRUSTED_PROXIES');
if ($trustedProxies) {
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
}
$CONFIG = array (
'overwriteprotocol' => 'https',
'trusted_proxies' => ['10.10.8.20'],
'default_phone_region' => 'IT',
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
'maintenance_window_start' => 1,
);
resources:
requests:
cpu: 300m
Expand Down

0 comments on commit f70d38f

Please sign in to comment.