1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webmin_ynh.git synced 2024-09-03 20:36:08 +02:00

Apply last example_ynh

This commit is contained in:
yalh76 2022-01-14 22:34:13 +01:00
parent 1002dfaa0c
commit 3aa78386ca
5 changed files with 34 additions and 42 deletions

View file

@ -1,24 +1,25 @@
location __PATH__ { location __PATH__ {
proxy_pass https://127.0.0.1:__PORT__/; proxy_pass https://127.0.0.1:__PORT__/;
proxy_redirect off; proxy_redirect off;
#Proxy Settings #Proxy Settings
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host:$server_port; #this redirects the link without port no proxy_set_header Host $host:$server_port; #this redirects the link without port no
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0; proxy_max_temp_file_size 0;
proxy_connect_timeout 90; proxy_connect_timeout 90;
proxy_send_timeout 90; proxy_send_timeout 90;
proxy_read_timeout 90; proxy_read_timeout 90;
proxy_buffer_size 128k; proxy_buffer_size 128k;
proxy_buffers 32 32k; proxy_buffers 32 32k;
proxy_busy_buffers_size 256k; proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k; proxy_temp_file_write_size 256k;
# Include SSOWAT user panel. more_clear_input_headers 'Accept-Encoding';
include conf.d/yunohost_panel.conf.inc;
more_clear_input_headers 'Accept-Encoding'; # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -1,5 +1,4 @@
* Other infos that people should be aware of, such as: * This app has **root** access which can change core things in the system, thus **breaking the YunoHost**. Use it carefully and read the [documents](https://doxfer.webmin.com/Webmin/Main_Page) two times before changing values.
* This app has **root** access which can change core things in the system, thus **breaking the YunoHost**. Use it carefully and read the [documents](https://doxfer.webmin.com/Webmin/Main_Page) two times before changing values. * Only **root** (system user) can connect
* Only **root** (system user) can connect * Webmin will **update itself** when system updates are run. So no need to **run upgrade script** once installed.
* Webmin will **update itself** when system updates are run. So no need to **run upgrade script** once installed. * Only **user** given permission at time of the installation can **access** the Webmin
* Only **user** given permission at time of the installation can **access** the Webmin

View file

@ -19,14 +19,14 @@
"email": "anmol@datamol.org" "email": "anmol@datamol.org"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.3" "yunohost": ">= 4.3.0"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [
"nginx" "nginx"
], ],
"arguments": { "arguments": {
"install" : [ "install": [
{ {
"name": "domain", "name": "domain",
"type": "domain" "type": "domain"

View file

@ -42,14 +42,6 @@ ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB
systemctl disable $app.service --quiet systemctl disable $app.service --quiet
systemctl daemon-reload systemctl daemon-reload
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..."
# Remove metapackage and its dependencies
ynh_exec_warn_less ynh_remove_app_dependencies
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================
@ -58,6 +50,14 @@ ynh_script_progression --message="Removing NGINX web server configuration..."
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..."
# Remove metapackage and its dependencies
ynh_exec_warn_less ynh_remove_app_dependencies
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -32,14 +32,6 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
admin=$(ynh_app_setting_get --app=$app --key=admin) admin=$(ynh_app_setting_get --app=$app --key=admin)
port=$(ynh_app_setting_get --app=$app --key=port) port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# CHECK IF THE APP CAN BE RESTORED
#=================================================
ynh_script_progression --message="Validating restoration parameters..."
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS
#================================================= #=================================================