Compare commits

...

17 Commits

Author SHA1 Message Date
AaronDewes
5ea1d44188 Fix key
Previously, the human-readable name was compared to the app id
2022-06-04 08:00:23 +00:00
AaronDewes
b149564490 Fix the add-https script
This script allows configuring SSL using the built-in nginx. Previously, it read the port from the .env, which could cause issues sometimes. It also contained workarounds for specific apps. This should fix that too.
2022-06-04 07:57:43 +00:00
Aaron Dewes
86c17c365e
Remove leftovers from karen v1 (#42) 2022-06-01 21:14:49 -04:00
AaronDewes
5b2b5a4541 Merge branch 'stable' into beta 2022-06-01 16:44:19 +00:00
AaronDewes
6e74290691 Merge branch 'stable' into beta 2022-05-24 05:39:59 +00:00
AaronDewes
62d51aa807 0.0.4 rc1 2022-05-22 14:34:09 +00:00
AaronDewes
781299fa1a Update manager 2022-05-22 13:10:26 +00:00
AaronDewes
4eb9819cf9 Remove leftovers from WIP karen v2 2022-05-22 13:08:07 +00:00
AaronDewes
9a6501a80e Merge remote-tracking branch 'origin/karen-v2' into beta 2022-05-22 13:07:12 +00:00
AaronDewes
d45da547d6 Merge branch 'stable' into beta 2022-05-22 13:06:30 +00:00
Aaron Dewes
80ead94dbd
Remove unused import 2022-05-20 10:12:53 +02:00
Aaron Dewes
a5e74fa1d2
Remove log 2022-05-19 19:03:55 +02:00
AaronDewes
f6dae9c646 Add karen v2 2022-05-19 10:41:21 +00:00
AaronDewes
3cec30340b Generate cache files for compose generator 2022-05-16 09:10:52 +00:00
AaronDewes
611d4a166b Add Karen v2 demo 2022-05-16 07:19:50 +00:00
AaronDewes
56946a9812 Put the latest beta into info.json 2022-05-16 06:11:47 +00:00
AaronDewes
6b29a76d81 Switch app store to beta branch 2022-05-16 06:11:07 +00:00
9 changed files with 15 additions and 37 deletions

3
.gitignore vendored
View File

@ -25,7 +25,6 @@ electrs/*
fulcrumx/*
nginx/*
redis/*
events/signals/*
docker-compose.override.yml
# Commit these empty directories
@ -36,7 +35,6 @@ docker-compose.override.yml
!db/citadel-seed
db/citadel-seed/*
!db/citadel-seed/.gitkeep
!events/signals/.gitkeep
!lnd/.gitkeep
!logs/.gitkeep
!tor/data/.gitkeep
@ -46,7 +44,6 @@ db/citadel-seed/*
!nginx/.gitkeep
!redis/.gitkeep
!fulcrumx/.gitkeep
!events/signals/.gitkeep
!**/*.license
services/installed.json

View File

@ -3,9 +3,9 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# 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.
# Include them anyway, but as a separate repo.
# 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

View File

@ -120,7 +120,6 @@ services:
volumes:
- ${PWD}/info.json:/info.json
- ${PWD}/db:/db
- ${PWD}/events/signals:/signals
- ${PWD}/events:/events
- ${PWD}/apps:/apps
- ${PWD}/lnd:/lnd:ro

View File

@ -1,6 +1,6 @@
{
"version": "0.0.4",
"name": "Citadel 0.0.4",
"version": "0.0.4-rc.1",
"name": "Citadel 0.0.4 Release Candidate 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."
}

View File

@ -53,11 +53,17 @@ with open(registry_file) as file:
port = None
for app in registry:
if app['name'] == service:
if app['id'] == service:
if "internalPort" in app:
port = app['internalPort']
else:
port = app['port']
break
if port is None:
print("No port found!")
exit(1)
original_config = crossplane.parse(nginx_config_file)
parsedConfig = original_config["config"][0]["parsed"]
@ -70,14 +76,6 @@ ip_alt_env_var = "APP_{}_MAIN_IP".format(
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'))
ip=None
@ -89,21 +87,6 @@ else:
print("Error: No IP found for {}".format(service))
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)

View File

@ -39,7 +39,7 @@ main () {
echo "Sleeping for ${delay} seconds..."
sleep $delay
echo "Triggering decoy backup..."
touch "${CITADEL_ROOT}/events/signals/backup"
"${CITADEL_ROOT}/scripts/backup/backup"
done
}

View File

@ -48,10 +48,10 @@ monitor_file () {
sleep 1
done
echo "$file_path created! Triggering backup..."
touch "${CITADEL_ROOT}/events/signals/backup"
"${CITADEL_ROOT}/scripts/backup/backup"
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

View File

@ -5,7 +5,6 @@ lnd/*
statuses
tor/*
electrs/*
events/signals
logs/*
app-data/*
apps/networking.json