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/* 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

View File

@ -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

View File

@ -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

View File

@ -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."
} }

View File

@ -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)

View File

@ -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
} }

View File

@ -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

View File

@ -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