forked from michael.heier/citadel-core
Compare commits
17 Commits
stable
...
fix/revers
Author | SHA1 | Date | |
---|---|---|---|
|
5ea1d44188 | ||
|
b149564490 | ||
|
86c17c365e | ||
|
5b2b5a4541 | ||
|
6e74290691 | ||
|
62d51aa807 | ||
|
781299fa1a | ||
|
4eb9819cf9 | ||
|
9a6501a80e | ||
|
d45da547d6 | ||
|
80ead94dbd | ||
|
a5e74fa1d2 | ||
|
f6dae9c646 | ||
|
3cec30340b | ||
|
611d4a166b | ||
|
56946a9812 | ||
|
6b29a76d81 |
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -25,7 +25,6 @@ electrs/*
|
||||||
fulcrumx/*
|
fulcrumx/*
|
||||||
nginx/*
|
nginx/*
|
||||||
redis/*
|
redis/*
|
||||||
events/signals/*
|
|
||||||
docker-compose.override.yml
|
docker-compose.override.yml
|
||||||
|
|
||||||
# Commit these empty directories
|
# Commit these empty directories
|
||||||
|
@ -36,7 +35,6 @@ docker-compose.override.yml
|
||||||
!db/citadel-seed
|
!db/citadel-seed
|
||||||
db/citadel-seed/*
|
db/citadel-seed/*
|
||||||
!db/citadel-seed/.gitkeep
|
!db/citadel-seed/.gitkeep
|
||||||
!events/signals/.gitkeep
|
|
||||||
!lnd/.gitkeep
|
!lnd/.gitkeep
|
||||||
!logs/.gitkeep
|
!logs/.gitkeep
|
||||||
!tor/data/.gitkeep
|
!tor/data/.gitkeep
|
||||||
|
@ -46,7 +44,6 @@ db/citadel-seed/*
|
||||||
!nginx/.gitkeep
|
!nginx/.gitkeep
|
||||||
!redis/.gitkeep
|
!redis/.gitkeep
|
||||||
!fulcrumx/.gitkeep
|
!fulcrumx/.gitkeep
|
||||||
!events/signals/.gitkeep
|
|
||||||
|
|
||||||
!**/*.license
|
!**/*.license
|
||||||
services/installed.json
|
services/installed.json
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# A collection of fully FLOSS app definitions and FLOSS apps for Citadel.
|
# A collection of fully FLOSS app definitions and FLOSS apps for Citadel.
|
||||||
https://github.com/runcitadel/apps v3-stable
|
https://github.com/runcitadel/apps v3-beta
|
||||||
|
|
||||||
# Some apps modified version of Umbrel apps, and their app definitions aren't FLOSS yet.
|
# Some apps modified version of Umbrel apps, and their app definitions aren't FLOSS yet.
|
||||||
# Include them anyway, but as a separate repo.
|
# Include them anyway, but as a separate repo.
|
||||||
# Add a # to the line below to disable the repo and only use FLOSS apps.
|
# Add a # to the line below to disable the repo and only use FLOSS apps.
|
||||||
https://github.com/runcitadel/apps-nonfree v3-stable
|
https://github.com/runcitadel/apps-nonfree v3-beta
|
||||||
|
|
|
@ -120,7 +120,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/info.json:/info.json
|
- ${PWD}/info.json:/info.json
|
||||||
- ${PWD}/db:/db
|
- ${PWD}/db:/db
|
||||||
- ${PWD}/events/signals:/signals
|
|
||||||
- ${PWD}/events:/events
|
- ${PWD}/events:/events
|
||||||
- ${PWD}/apps:/apps
|
- ${PWD}/apps:/apps
|
||||||
- ${PWD}/lnd:/lnd:ro
|
- ${PWD}/lnd:/lnd:ro
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"version": "0.0.4",
|
"version": "0.0.4-rc.1",
|
||||||
"name": "Citadel 0.0.4",
|
"name": "Citadel 0.0.4 Release Candidate 1",
|
||||||
"requires": ">=0.0.1",
|
"requires": ">=0.0.1",
|
||||||
"notes": "This update fixes multiple bugs in the 0.0.3 release."
|
"notes": "This update fixes multiple bugs in the 0.0.4 release."
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,11 +53,17 @@ with open(registry_file) as file:
|
||||||
|
|
||||||
port = None
|
port = None
|
||||||
for app in registry:
|
for app in registry:
|
||||||
if app['name'] == service:
|
if app['id'] == service:
|
||||||
if "internalPort" in app:
|
if "internalPort" in app:
|
||||||
port = app['internalPort']
|
port = app['internalPort']
|
||||||
|
else:
|
||||||
|
port = app['port']
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if port is None:
|
||||||
|
print("No port found!")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
original_config = crossplane.parse(nginx_config_file)
|
original_config = crossplane.parse(nginx_config_file)
|
||||||
parsedConfig = original_config["config"][0]["parsed"]
|
parsedConfig = original_config["config"][0]["parsed"]
|
||||||
|
|
||||||
|
@ -70,14 +76,6 @@ ip_alt_env_var = "APP_{}_MAIN_IP".format(
|
||||||
service.upper().replace("-", "_")
|
service.upper().replace("-", "_")
|
||||||
)
|
)
|
||||||
|
|
||||||
port_env_var = "APP_{}_WEB_PORT".format(
|
|
||||||
service.upper().replace("-", "_")
|
|
||||||
)
|
|
||||||
|
|
||||||
port_alt_env_var = "APP_{}_MAIN_PORT".format(
|
|
||||||
service.upper().replace("-", "_")
|
|
||||||
)
|
|
||||||
|
|
||||||
env = parse_dotenv(os.path.join(node_root, '.env'))
|
env = parse_dotenv(os.path.join(node_root, '.env'))
|
||||||
|
|
||||||
ip=None
|
ip=None
|
||||||
|
@ -89,21 +87,6 @@ else:
|
||||||
print("Error: No IP found for {}".format(service))
|
print("Error: No IP found for {}".format(service))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if port == None:
|
|
||||||
if port_env_var in env:
|
|
||||||
port = env[port_env_var]
|
|
||||||
elif port_alt_env_var in env:
|
|
||||||
port = env[port_alt_env_var]
|
|
||||||
else:
|
|
||||||
print("Error: No port found for {}".format(service))
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
if service == "btcpay-server":
|
|
||||||
port = 1234
|
|
||||||
|
|
||||||
if service == "lnme":
|
|
||||||
port = 1323
|
|
||||||
|
|
||||||
actual_url="http://{}:{}".format(ip, port)
|
actual_url="http://{}:{}".format(ip, port)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ main () {
|
||||||
echo "Sleeping for ${delay} seconds..."
|
echo "Sleeping for ${delay} seconds..."
|
||||||
sleep $delay
|
sleep $delay
|
||||||
echo "Triggering decoy backup..."
|
echo "Triggering decoy backup..."
|
||||||
touch "${CITADEL_ROOT}/events/signals/backup"
|
"${CITADEL_ROOT}/scripts/backup/backup"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,10 +48,10 @@ monitor_file () {
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
echo "$file_path created! Triggering backup..."
|
echo "$file_path created! Triggering backup..."
|
||||||
touch "${CITADEL_ROOT}/events/signals/backup"
|
"${CITADEL_ROOT}/scripts/backup/backup"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fswatch -0 --event Updated $file_path | xargs -0 -n 1 -I {} touch "${CITADEL_ROOT}/events/signals/backup"
|
fswatch -0 --event Updated $file_path | xargs -0 -n 1 -I {} "${CITADEL_ROOT}/scripts/backup/backup"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ! -d "${CITADEL_ROOT}" ]]; then
|
if [[ ! -d "${CITADEL_ROOT}" ]]; then
|
||||||
|
|
|
@ -5,7 +5,6 @@ lnd/*
|
||||||
statuses
|
statuses
|
||||||
tor/*
|
tor/*
|
||||||
electrs/*
|
electrs/*
|
||||||
events/signals
|
|
||||||
logs/*
|
logs/*
|
||||||
app-data/*
|
app-data/*
|
||||||
apps/networking.json
|
apps/networking.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user