diff --git a/conf/nginx.conf b/conf/nginx.conf index ce21cf3..908219e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,8 +4,13 @@ location __PATH__ { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://localhost:__PORT__; - proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://localhost:__PORT__; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name __PATH__; + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } diff --git a/conf/systemd.service b/conf/systemd.service index 76cdf64..7e0e760 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Small description of the service +Description=calibreweb After=network.target [Service] @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=/usr/bin/python __FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1 [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index f9de22f..c198504 100755 --- a/scripts/install +++ b/scripts/install @@ -139,7 +139,7 @@ ynh_system_user_create $app ### - And the section "SETUP SYSTEMD" in the upgrade script # Create a dedicated systemd config -#ynh_add_systemd_config +ynh_add_systemd_config #=================================================