I'm making a package for a webapp that will include an nginx config file.
What's the convention for these config files, where's the best place to put them?
Ideally, I'd like to see a » include /etc/nginx/sites/*.conf;« at the bottom of the main /etc/nginx/nginx.conf so at least files dropped there would work out-of-the-box.
On Sun, 15 Jul 2018 16:36:24 +0200 Damjan Georgievski via aur-general aur-general@archlinux.org wrote:
I'm making a package for a webapp that will include an nginx config file.
What's the convention for these config files, where's the best place to put them?
Ideally, I'd like to see a » include /etc/nginx/sites/*.conf;« at the bottom of the main /etc/nginx/nginx.conf so at least files dropped there would work out-of-the-box.
Hi Damjan,
Probably best to put an example config in /etc/nginx/sites/, similar to how its done for nextcloud[1] for example.
I don't recommend editing the shipped nginx configuration.
Regards, Khorne
[1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packa...
aur-general@lists.archlinux.org