1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00
This commit is contained in:
Thomas 2023-03-05 20:02:47 +01:00 committed by GitHub
parent e31ea2ef10
commit 4dd0d31774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 3 deletions

View file

@ -36,6 +36,6 @@ SENDER_EMAIL=
# Weather # Weather
# available weather API providers: darksky, visualcrossing # available weather API providers: darksky, visualcrossing
# WEATHER_API_PROVIDER=visualcrossing WEATHER_API_PROVIDER=__WEATHER_PROVIDER__
# WEATHER_API_KEY= WEATHER_API_KEY=__WEATHER_KEY__

View file

@ -8,6 +8,9 @@ location __PATH__/ {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -40,6 +40,19 @@ ram.runtime = "50M"
# this is a generic question - ask strings are automatically handled by Yunohost's core # this is a generic question - ask strings are automatically handled by Yunohost's core
type = "user" type = "user"
[install.weather_provider]
ask.en = "(Optional) Choose your weather provider between Darksky and Visual Crossing"
ask.fr = "(Optionnel) Choisissez votre fournisseur météo entre Darksky et Visual Crossing"
help.en = "As Darksky is deprecating his api, it is suggested to opt for Visual Crossing"
help.fr = "Comme Darksky déprécie son API, il est suggéré d'opter pour Visual Crossing"
type = "string"
Choices = ["darksky", "visualcrossing"]
[install.weather_key]
ask.en = "Insert here the api key from the chosen weather provider"
ask.fr = "Insérez ici la clé API du fournisseur de météo choisi".
type = "string"
[resources] [resources]
[resources.system_user] [resources.system_user]

View file

@ -11,6 +11,7 @@ source /usr/share/yunohost/helpers
admin_mail=$(ynh_user_get_info --username=$admin --key=username) admin_mail=$(ynh_user_get_info --username=$admin --key=username)
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
@ -125,7 +126,7 @@ ynh_script_progression --message="Starting systemd services..." --weight=15
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid" ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="Succeeded" ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="Started"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT