forked from azukaar/cosmos-servapps-official
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
247fac8
commit 94e7060
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
|
||
# Loads default set of integrations. Do not remove. | ||
### Configuration written from cosmos, do NOT change ### | ||
default_config: | ||
|
||
http: | ||
use_x_forwarded_for: True | ||
trusted_proxies: | ||
- !env_var PROXY_HOSTNAME | ||
### END### | ||
|
||
### add your custom config as desired starting from here: ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# init.sh | ||
|
||
if [ $CONFIG_EDITOR ]; then | ||
sed -i '~### Configuration written from cosmos, do NOT change ###\(.*\)##config_editor##\(.*\)##/config_editor##\(.*\)### END###~{s~### Configuration written from cosmos, do NOT change ###\1##config_editor##\nconfig_editor:\n\nfrontend:\n extra_module_url:\n - /local/config-editor-card.js?v=1\n##/config_editor##\3### END###~;h};${x;~.~{x;q0};x;q1}' /config/configuration.yaml | ||
if [ $? ]; then | ||
sed -i '~### Configuration written from cosmos, do NOT change ###\(.*\)### END###~s~### Configuration written from cosmos, do NOT change ###\1##config_editor##\nconfig_editor:\n\nfrontend:\n extra_module_url:\n - /local/config-editor-card.js?v=1\n##/config_editor##\n\n### END###~g' /config/configuration.yaml | ||
fi | ||
fi | ||
|
||
if [ $HACS ]; then | ||
echo "test" | ||
fi | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters