1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cockpit_ynh.git synced 2024-09-03 18:16:26 +02:00
This commit is contained in:
ericgaspar 2021-12-06 22:54:30 +01:00
parent c4d495602a
commit 1edd5bbe59
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 23 additions and 7 deletions

8
conf/cockpit.conf Normal file
View file

@ -0,0 +1,8 @@
[WebService]
Origins = https://__DOMAIN__
https://127.0.0.1:9090
[WebService]
ProtocolHeader = X-Forwarded-Proto
UrlRoot = __PATH__/

View file

@ -11,9 +11,7 @@
"upstream": {
"license": "LGPL-2.1-only",
"website": "https://cockpit-project.org/",
"demo": "https://demo.example.com",
"admindoc": "https://cockpit-project.org/documentation.html",
"code": "https://some.forge.com/example/example"
"admindoc": "https://cockpit-project.org/documentation.html"
},
"license": "LGPL-2.1-only",
"maintainer": {
@ -35,8 +33,12 @@
{
"name": "path",
"type": "path",
"example": "/cockpit",
"default": "/cockpit"
"help": {
"en": "/cockpit/ and /cockpit+ are reserved and should not be used.",
"fr": "/cockpit/ et /cockpit+ sont réservés et ne doivent pas être utilisés."
},
"example": "/monitor",
"default": "/monitor"
},
{
"name": "is_public",

View file

@ -68,6 +68,13 @@ ynh_script_progression --message="Installing dependencies..." --weight=20
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/cockpite.conf" --destination="/etc/cockpit/cockpit.conf"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -82,8 +89,7 @@ ynh_add_nginx_config
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Reload services
systemctl start $app
systemctl enable $app --quiet
systemctl enable cockpit.socket --quiet
#=================================================
# SETUP SSOWAT