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
7c74945c35
commit
1b55392293
4 changed files with 15 additions and 17 deletions
|
@ -1,11 +1,6 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location ^~ __PATH__/ {
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
|
|
1
doc/DESCRIPTION.md
Normal file
1
doc/DESCRIPTION.md
Normal file
|
@ -0,0 +1 @@
|
|||
Cockpit is a web-based graphical interface for servers, intended for everyone.
|
|
@ -3,29 +3,34 @@
|
|||
"id": "cockpit",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "Sysadmin login session in a web browser.",
|
||||
"fr": "Session de connexion sysadmin dans un navigateur Web."
|
||||
"en": "Sysadmin login session in a web browser",
|
||||
"fr": "Session de connexion sysadmin dans un navigateur Web"
|
||||
},
|
||||
"version": "232~ynh1",
|
||||
"version": "257~ynh1",
|
||||
"url": "https://cockpit-project.org/",
|
||||
"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"
|
||||
},
|
||||
"license": "LGPL-2.1-only",
|
||||
"maintainer": {
|
||||
"name": "liberodark",
|
||||
"email": "liberodark@gmail.com"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 4.2.4"
|
||||
"yunohost": ">= 4.3.0"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
"nginx",
|
||||
"mysql"
|
||||
"nginx"
|
||||
],
|
||||
"arguments": {
|
||||
"install": [{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"example": "example.com"
|
||||
"type": "domain"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
|
|
@ -34,10 +34,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating restoration parameters..." --weight=2
|
||||
|
||||
ynh_webpath_available --domain=$domain --path_url=$path_url \
|
||||
|| ynh_die --message="Path not available: ${domain}${path_url}"
|
||||
test ! -d $final_path \
|
||||
|| ynh_die --message="There is already a directory: $final_path "
|
||||
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|
||||
|
||||
#=================================================
|
||||
# STANDARD RESTORATION STEPS
|
||||
|
|
Loading…
Reference in a new issue