mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
fix
This commit is contained in:
parent
e9ad445e4a
commit
df90c175ea
3 changed files with 11 additions and 4 deletions
|
@ -21,3 +21,10 @@ location __PATH__/ {
|
|||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
||||
location ~ .*.(gif|jpg|jpeg|png|bmp|swf|css|js)$ {
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ User=__APP__
|
|||
Group=__APP__
|
||||
StartLimitInterval=5
|
||||
StartLimitBurst=10
|
||||
ExecStart=__FINALPATH__/AdGuardHome -s start -c __FINALPATH__/AdGuardHome.yaml -p __PORT__
|
||||
ExecStart=__FINALPATH__/AdGuardHome -s start -c __FINALPATH__/AdGuardHome.yaml -w __FINALPATH__ -h 127.0.0.1 -p __PORT__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
#StandardOutput=file:/var/log/__APP__.out
|
||||
#StandardError=file:/var/log/__APP__.err
|
||||
|
|
|
@ -116,8 +116,8 @@ chown -R $app:$app "$final_path/AdGuardHome.yaml"
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
#$final_path/AdGuardHome --service install -c $final_path/AdGuardHome.yaml -p $port
|
||||
#ynh_add_systemd_config
|
||||
$final_path/AdGuardHome --service install -c __FINALPATH__/AdGuardHome.yaml -w __FINALPATH__ -h 127.0.0.1 -p __PORT__
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
@ -134,7 +134,7 @@ yunohost service add $app --description=""
|
|||
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd --line_match="Version:"
|
||||
ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
Loading…
Add table
Reference in a new issue