mirror of
https://github.com/YunoHost-Apps/cockpit_ynh.git
synced 2024-09-03 18:16:26 +02:00
Fix
This commit is contained in:
parent
c4d495602a
commit
1edd5bbe59
3 changed files with 23 additions and 7 deletions
8
conf/cockpit.conf
Normal file
8
conf/cockpit.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
[WebService]
|
||||
Origins = https://__DOMAIN__
|
||||
https://127.0.0.1:9090
|
||||
|
||||
[WebService]
|
||||
ProtocolHeader = X-Forwarded-Proto
|
||||
|
||||
UrlRoot = __PATH__/
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue