[09:19:29]
<tonton> Hi, I'm setting up a custom webapp and I'm about to install a nginx config for it. I see `/etc/nginx/conf.d/` has a `.conf` and `.d` for each "site". and within the "my_webapp" theres even another set of `.conf` and `.d` and I see they are included all the way down... I guess (and I'll try) to put the config in the lowest path, but is that the intention, and what should I then take out of the inserted file (it seems ssl certs are handled above but I'm not familiar enough with nginx or this setup to know how I get the right stuff at this level)?
[12:29:11]
<nemstudio18> Hi , 👋 i'm new user to ynh! I have a problem with installation of my web app!
https://paste.yunohost.org/raw/anozucevar
[12:44:22]
<eric_G> `ynh_die '--message=You need to set a password to enable SFTP'`
[12:44:32]
<eric_G> from the logs
[13:58:39]
<tituspijean> @tonton:envs.nethere is the hierarchy:
/etc/nginx/nginx.conf contains NGINX's http block and includes other files stored in /etc/nginx/conf.d (yunohost core files like security.conf, and domain and cert configuration files in domain.conf)
`/etc/nginx/conf.d/domain.d/application.conf` files contain each app location blocks
`my_webap` is a particular case, since it's made to be tweaked, we add an "include" call in `my_webapp.conf` to include all files in `/etc/nginx/domain.conf/my_webapp.d/`. That's where you can put your tweaks.
[14:29:47]
<nemstudio18> > <@ericg:matrix.org> `ynh_die '--message=You need to set a password to enable SFTP'`
Thx , it's ok! But I'va new problem with let's encrypt.
Do you want to give me help ?
https://paste.yunohost.org/raw/oxumamaram
[14:34:04]
<tonton> Nice. Thank you. That makes it clear. Would be awesome to have that in the docs also!
[14:34:43]
<tonton> but I understand that's a job in itself. :)
[15:10:28]
<tonton> Allright, this may not be yunohost specific - more of an nginx question, I'm now struggling with a nginx try_file directive and I'm getting error logs on nginx trying to open "/usr/share/nginx/htmlapi/index.php". I cannot fathom how that path arrives at nginx or is resolved by nginx's configs. Any here have an idea how I can start troubleshooting it?
[15:15:03]
<Aleks (he/him/il/lui)> hmmmmyeah i think i see the kind of symptom you're talking about, i've seen it many times but i never quite figured out how exactly that happens
[17:40:26]
<tonton> ok, so I found through searches and nginx's docs; that I could add `root /var/www/my_webapp__2/www/api/;` and it worked. Maybe that's a reason for using `alias` in the nginx config for my_webapp... :)
[18:08:51]
<tituspijean> > <@tonton:envs.net> Nice. Thank you. That makes it clear. Would be awesome to have that in the docs also!
It is documented, in the app's admin page in your webadmin (https://github.com/YunoHost-Apps/my_webapp_ynh/blob/master/doc/ADMIN.md#customizing-the-nginx-configuration)
[20:23:14]
<stereo> just broke sharkey during the upgrade `gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp` https://paste.yunohost.org/raw/jadalunexu
[23:19:35]
<orhtej2> install `pkg-config` manually and retry perhaps? Command would be
`sudo apt install pkg-config`
[23:21:54]
<orhtej2> (also thank you for reporting, speculative fix on the way: https://github.com/YunoHost-Apps/sharkey_ynh/pull/41)