Hello,
With previous DSM, I used to "link" a nginx config file (installed with my packages) under /usr/syno/share/nginx/conf.d/
Ex.:
ln -s $SYNOPKG_PKGDEST/ui/dsm.cgi.conf /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
Where $SYNOPKG_PKGDEST is the target path of my package and $SYNOPKG_PKGNAME is the name of my package
Just to be complete... The nginx config file dsm.$SYNOPKG_PKGNAME.conf contains a redirection to be able to run the php scripts deployed in the target path of my package (instead of being deployed under the web station root folder).
location ~ ^/webman/3rdparty/<package name>/.*\.php {
root /usr/syno/synoman;
include scgi_params;
rewrite .*\.php /webman/3rdparty/<package name>/router.cgi break;
scgi_pass synoscgi;
}
And my router.cgi simply call php7x to execute the requested php scripts...
But with DSM 7.0, the package installation may not be run anymore as root. So, post installation script don't have the requires access rights to create the link.
Is there anyone who could help me to understand how to proceed with this ?
Using a Linker worker, I am only able to create links in /usr/local/etc/. I can't find how to create those links under /usr/local/etc/nginx/conf.d/ ?
Any idea ?
With previous DSM, I used to "link" a nginx config file (installed with my packages) under /usr/syno/share/nginx/conf.d/
Ex.:
ln -s $SYNOPKG_PKGDEST/ui/dsm.cgi.conf /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
Where $SYNOPKG_PKGDEST is the target path of my package and $SYNOPKG_PKGNAME is the name of my package
Just to be complete... The nginx config file dsm.$SYNOPKG_PKGNAME.conf contains a redirection to be able to run the php scripts deployed in the target path of my package (instead of being deployed under the web station root folder).
location ~ ^/webman/3rdparty/<package name>/.*\.php {
root /usr/syno/synoman;
include scgi_params;
rewrite .*\.php /webman/3rdparty/<package name>/router.cgi break;
scgi_pass synoscgi;
}
And my router.cgi simply call php7x to execute the requested php scripts...
But with DSM 7.0, the package installation may not be run anymore as root. So, post installation script don't have the requires access rights to create the link.
Is there anyone who could help me to understand how to proceed with this ?
Using a Linker worker, I am only able to create links in /usr/local/etc/. I can't find how to create those links under /usr/local/etc/nginx/conf.d/ ?
Any idea ?