Monday, November 25, 2024
apps@conference.yunohost.org
November
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
             

[07:00:36] <Yunohost Git/Infra notifications> [wallabag2_ynh] b​mp [commented](https://github.com/YunoHost-Apps/wallabag2_ynh/issues/226#issuecomment-2497017924) on [issue #226](https://github.com/YunoHost-Apps/wallabag2_ynh/issues/226) Wallabagger connection broken : I have the same issue on Version: 2.5.4 and Yunohost 12.0.7 (stable). All my Wallabag clients that were working earl...
[07:17:01] <Yunohost Git/Infra notifications> [synapse_ynh] J​osue-T [commented](https://github.com/YunoHost-Apps/synapse_ynh/issues/497#issuecomment-2497047126) on [issue #497](https://github.com/YunoHost-Apps/synapse_ynh/issues/497) CAS not working after migration to ynh 12: Can you share me the log that you have while do try a login in /var/log/nginx/<synapse domain>-access.log ?
[07:31:21] <Yunohost Git/Infra notifications> [searxng_ynh] e​willy [commented](https://github.com/YunoHost-Apps/searxng_ynh/issues/349#issuecomment-2497077771) on [issue #349](https://github.com/YunoHost-Apps/searxng_ynh/issues/349) Failed to update from 2023.05.22.11.23.48~ynh1 to 2024.11.17~ynh1: Your version was too old : 1.5 year without updating... I wont fix it : please uninstall and reisntall searxng
[07:31:21] <Yunohost Git/Infra notifications> [searxng_ynh] e​willy closed [issue #349](https://github.com/YunoHost-Apps/searxng_ynh/issues/349): Failed to update from 2023.05.22.11.23.48~ynh1 to 2024.11.17~ynh1
[08:18:31] <Yunohost Git/Infra notifications> [freshrss_ynh] e​ricgaspar merged [pull request #192](https://github.com/YunoHost-Apps/freshrss_ynh/pull/192): Testing
[08:18:31] <Yunohost Git/Infra notifications> [freshrss_ynh] e​ricgaspar pushed 1 commit to master: Testing (#192) * Upgrade to v1.24.3 (#191) * Upgrade sources - main v1.24.3: https://github.com/FreshRSS/FreshRSS/re... ([7586247d](https://github.com/YunoHost-Apps/freshrss_ynh/commit/7586247ded2dc49bcce3ecfda380b77632b7f853))
[08:45:54] <Yunohost Git/Infra notifications> [vaultwarden_ynh] e​ricgaspar pushed 1 commit to testing: Update manifest.toml ([3f76974d](https://github.com/YunoHost-Apps/vaultwarden_ynh/commit/3f76974d3275052c1bc723758f6da553249aa740))
[09:19:40] <oliviermgx> Hello, May I have some explaination regarding environement in systemd.service file
What's the difference between __PATH_WITH_NODEJS__ and __NODEJS_DIR__ ?
[09:19:53] <oliviermgx> More generally could I find a doc for that ? Thanks
[09:45:35] <orhtej2> > Hello, May I have some explaination regarding environement in systemd.service file
> What's the difference between __PATH_WITH_NODEJS__ and __NODEJS_DIR__ ?

https://yunohost.org/en/packaging_apps_helpers_v2.1#ynh-nodejs-install

Also defines:

$path_with_nodejs to be used in the systemd config (Environment="PATH=__PATH_WITH_NODEJS__")

$nodejs_dir, the directory containing the specific version of nodejs, which may be used in the systemd config too (e.g. ExecStart=__NODEJS_DIR__/node foo bar)
[10:38:46] <Yunohost Git/Infra notifications> [synapse_ynh] T​hatoo [commented](https://github.com/YunoHost-Apps/synapse_ynh/issues/497#issuecomment-2497631319) on [issue #497](https://github.com/YunoHost-Apps/synapse_ynh/issues/497) CAS not working after migration to ynh 12: 10.0.242.87 - - [25/Nov/2024:11:36:32 +0100] "GET /.well-known/matrix/client HTTP/2.0" 302 138 "-" "Mozilla/5.0 (X11...
[10:39:52] <Yunohost Git/Infra notifications> [synapse_ynh] T​hatoo [commented](https://github.com/YunoHost-Apps/synapse_ynh/issues/497#issuecomment-2497631319) on [issue #497](https://github.com/YunoHost-Apps/synapse_ynh/issues/497) CAS not working after migration to ynh 12: xxx.xxx.xxx.xxx - - [25/Nov/2024:11:36:32 +0100] "GET /.well-known/matrix/client HTTP/2.0" 302 138 "-" "Mozilla/5.0 ...
[11:53:13] <oliviermgx> > https://yunohost.org/en/packaging_apps_helpers_v2.1#ynh-nodejs-install
>
> Also defines:
>
> $path_with_nodejs to be used in the systemd config (Environment="PATH=__PATH_WITH_NODEJS__")
>
> $nodejs_dir, the directory containing the specific version of nodejs, which may be used in the systemd config too (e.g. ExecStart=__NODEJS_DIR__/node foo bar)

oh ! I didn't see that something else is hidden behind "Install a specific version of nodejs, using 'n'" !!!
perhaps because of the pointer not changing on hover :p
thank you
[14:42:09] <Yunohost Git/Infra notifications> test?
[14:42:56] <Yunohost Git/Infra notifications> test2
[14:47:25] <Aleks (he/him/il/lui)> (ci-apps notifications should be back online)
[15:04:57] <limezy> Hi all ! May I have relevant rights to maintain this app please ? (https://github.com/YunoHost-Apps/rsshub_ynh) I volunteer to maintain this app from now on ;)
[15:23:41] <Yunohost Git/Infra notifications> [snappymail_ynh] M​5oul [commented](https://github.com/YunoHost-Apps/snappymail_ynh/pull/188#issuecomment-2498316700) on [issue #188](https://github.com/YunoHost-Apps/snappymail_ynh/pull/188) doc/ADMIN: Add migration from RainLoop §: @YunoHost-Apps/super-maintainers, @Tagadda, @tituspijean, @orhtej2. Can someone review this change It would be great to...
[15:57:04] <orhtej2> > <@limezy:matrix.org> Hi all ! May I have relevant rights to maintain this app please ? (https://github.com/YunoHost-Apps/rsshub_ynh) I volunteer to maintain this app from now on ;)

Your wish is granted (I hope)
[15:57:07] <oliviermgx> it would be great for me to have some help, please. My app si installed, the service is running, but unable to execute properly the ExecStart=__NODEJS_DIR__/npm start line
Here is the return of systemctl status of my app :
● silex-platform.service - Service for Silex-Platform (silex-platform)
Loaded: loaded (/etc/systemd/system/silex-platform.service; enabled; preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-11-25 15:55:23 UTC; 3s ago
Process: 21744 ExecStart=/opt/node_n/n/versions/node/20/bin/npm start (code=exited, status=209/STDOUT)
Main PID: 21744 (code=exited, status=209/STDOUT)


[15:57:26] <oliviermgx> https://paste.yunohost.org/raw/lobodivice
[16:00:29] <Aleks (he/him/il/lui)> sooo "activating (auto-restart)" is usually symptomatic of the service loop-restarting forever so there's definitely an issue indeed
[16:00:43] <Aleks (he/him/il/lui)> can you try sharing the output of `journalctl -u silex-platform -n 100 --no-pager --no-hostname` ?
[16:01:04] <Aleks (he/him/il/lui)> (or if you have access to the webadmin, Tools > Services > silex-platform > green button to share logs)
[16:02:44] <oliviermgx> a loop with this message :
Nov 25 16:01:32 systemd[1]: silex-platform.service: Scheduled restart job, restart counter is at 1347.
Nov 25 16:01:32 systemd[1]: Stopped silex-platform.service - Service for Silex-Platform (silex-platform).
Nov 25 16:01:32 (npm)[21892]: silex-platform.service: Failed to set up standard output: No such file or directory
Nov 25 16:01:32 systemd[1]: Started silex-platform.service - Service for Silex-Platform (silex-platform).
Nov 25 16:01:32 (npm)[21892]: silex-platform.service: Failed at step STDOUT spawning /opt/node_n/n/versions/node/20/bin/npm: No such file or directory
Nov 25 16:01:32 systemd[1]: silex-platform.service: Main process exited, code=exited, status=209/STDOUT
Nov 25 16:01:32 systemd[1]: silex-platform.service: Failed with result 'exit-code'.
[16:03:07] <oliviermgx> npm is no such file
[16:04:07] <limezy> > Your wish is granted (I hope)

Yep it is, thank you so much !
[16:04:21] <Aleks (he/him/il/lui)> hmm it's confusing but it sounds like it's not npm that doesnt exist but the output, probably the log file ?
[16:05:45] <oliviermgx> a `node -v` return `-bash: node: command not found`
[16:05:52] <orhtej2> > it would be great for me to have some help, please. My app si installed, the service is running, but unable to execute properly the ExecStart=__NODEJS_DIR__/npm start line
> Here is the return of systemctl status of my app :
> ● silex-platform.service - Service for Silex-Platform (silex-platform)
> Loaded: loaded (/etc/systemd/system/silex-platform.service; enabled; preset: enabled)
> Active: activating (auto-restart) (Result: exit-code) since Mon 2024-11-25 15:55:23 UTC; 3s ago
> Process: 21744 ExecStart=/opt/node_n/n/versions/node/20/bin/npm start (code=exited, status=209/STDOUT)
> Main PID: 21744 (code=exited, status=209/STDOUT)

https://github.com/YunoHost-Apps/firefish_ynh/blob/59c897985728197e620e4aed27c05d0b107a0d9c/conf/systemd.service#L12 your config should be ~like this if you're not using helpers 2.1
[16:06:05] <Aleks (he/him/il/lui)> the easiest fix for this should be to add the logrotate helpers
[16:06:06] <orhtej2> and if you are then IDK :P
[16:07:10] <orhtej2> with helpers 2.1: https://github.com/YunoHost-Apps/umami_ynh/blob/bae9a4b295e634884f6631db1026f34ffab183a9/conf/systemd.service#L14
[16:07:22] <orhtej2> can you share the repo link?
[16:07:56] <Aleks (he/him/il/lui)> > a loop with this message :
> Nov 25 16:01:32 systemd[1]: silex-platform.service: Scheduled restart job, restart counter is at 1347.
> Nov 25 16:01:32 systemd[1]: Stopped silex-platform.service - Service for Silex-Platform (silex-platform).
> Nov 25 16:01:32 (npm)[21892]: silex-platform.service: Failed to set up standard output: No such file or directory
> Nov 25 16:01:32 systemd[1]: Started silex-platform.service - Service for Silex-Platform (silex-platform).
> Nov 25 16:01:32 (npm)[21892]: silex-platform.service: Failed at step STDOUT spawning /opt/node_n/n/versions/node/20/bin/npm: No such file or directory
> Nov 25 16:01:32 systemd[1]: silex-platform.service: Main process exited, code=exited, status=209/STDOUT
> Nov 25 16:01:32 systemd[1]: silex-platform.service: Failed with result 'exit-code'.

so tl;dr, cf https://yunohost.org/fr/packaging_apps_helpers_v2.1#ynh-config-add-logrotate

try adding `ynh_config_add_logrotate` before the service gets started in your intsall script (but ideally you should also add it to the upgrade script and restore script) and `ynh_config_remove_logrotate` in the remove script
[16:10:49] <oliviermgx> > https://github.com/YunoHost-Apps/firefish_ynh/blob/59c897985728197e620e4aed27c05d0b107a0d9c/conf/systemd.service#L12 your config should be ~like this if you're not using helpers 2.1

thank you, I'm using 2.1
[16:11:09] <oliviermgx> > can you share the repo link?

https://github.com/oliviermgx/silex_ynh
[16:12:14] <oliviermgx> > with helpers 2.1: https://github.com/YunoHost-Apps/umami_ynh/blob/bae9a4b295e634884f6631db1026f34ffab183a9/conf/systemd.service#L14

you mean I should use E`xecStart=__NODEJS_DIR__/npm exec next start` ?
[16:12:40] <oliviermgx> > <@Alekswag:matrix.org> so tl;dr, cf https://yunohost.org/fr/packaging_apps_helpers_v2.1#ynh-config-add-logrotate
>
> try adding `ynh_config_add_logrotate` before the service gets started in your intsall script (but ideally you should also add it to the upgrade script and restore script) and `ynh_config_remove_logrotate` in the remove script

yes I will try, thank you for your time
[16:12:42] <Aleks (he/him/il/lui)> the 👏 issue 👏 is not 👏 about 👏 npm 👏
[16:12:50] <Aleks (he/him/il/lui)> (i think)
[16:13:38] <Aleks (he/him/il/lui)> (classic linux and its misleading error messages)
[16:13:56] <oliviermgx> > <@Alekswag:matrix.org> the 👏 issue 👏 is not 👏 about 👏 npm 👏

yes, I'm old and a little bit deaf 👴
[16:16:29] <orhtej2> > <@Alekswag:matrix.org> the 👏 issue 👏 is not 👏 about 👏 npm 👏

that sort of makes sense, logrotate sounds like a solid plan
[16:16:57] <Aleks (he/him/il/lui)> https://i.imgflip.com/9bl4xc.jpg
[16:21:20] <Yunohost Git/Infra notifications> e​ricgaspar edited repository pinkarrows_ynh: Lightweight images/screenshot annotation tool. https://github.com/YunoHost-Apps/pinkarrows_ynh
[16:30:53] <eric_G> ^ yeah, I did it. everyone knows it now 😶‍🌫️
[16:47:49] <orhtej2> > <@Alekswag:matrix.org> https://i.imgflip.com/9bl4xc.jpg

must <del>not</del>
[16:58:45] <Yunohost Git/Infra notifications> [apps] x​mgz [commented](https://github.com/YunoHost/apps/pull/2720#issuecomment-2498556074) on [issue #2720](https://github.com/YunoHost/apps/pull/2720) Update app levels according to CI results: please, why does *phanpy_ynh* is «missing»? thank you
[17:01:21] <Yunohost Git/Infra notifications> [apps] a​lexAubin [commented](https://github.com/YunoHost/apps/pull/2720#issuecomment-2498562317) on [issue #2720](https://github.com/YunoHost/apps/pull/2720) Update app levels according to CI results: Sounds like maybe the app list didnt get properly upgraded in ci-appss yunorunner ... poke @Salamandar do you have a cl...
[17:12:11] <Yunohost Git/Infra notifications> [nextcloud_ynh] V​OGUK opened [issue #754](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754): Nextcloud 30
[17:13:50] <oliviermgx> another question please : $domain returns maindomain.tld instead of my real domain ?

[17:15:08] <Yunohost Git/Infra notifications> [nextcloud_ynh] e​ricgaspar closed [issue #754](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754): Nextcloud 30
[17:15:18] <Yunohost Git/Infra notifications> [nextcloud_ynh] e​ricgaspar [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754#issuecomment-2498591538) on [issue #754](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754) Nextcloud 30: Nextcloud 30.0.2 is available right now sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextclo...
[17:17:57] <oliviermgx> > another question please : $domain returns maindomain.tld instead of my real domain ?

oooops, found : it's "$domain" with quotes ...
[18:30:32] <Yunohost Git/Infra notifications> [apps] m​hfowler opened [pull request #2724](https://github.com/YunoHost/apps/pull/2724): Add lichen-markdown to yunohost apps catalog
[19:15:33] <orhtej2> > <@yunohostinfra:matrix.org> [apps] m​hfowler opened [pull request #2724](https://github.com/YunoHost/apps/pull/2724): Add lichen-markdown to yunohost apps catalog

https://ci-apps-dev.yunohost.org/ci/job/4384 vs https://github.com/YunoHost-Apps/lichenmarkdown_ynh/blob/66f742899f9b76cb722557aa1c0ba3f342205ebd/tests.toml#L9 🙃
[19:16:24] <Yunohost Git/Infra notifications> [apps] o​rhtej2 [commented](https://github.com/YunoHost/apps/pull/2724#issuecomment-2498838896) on [issue #2724](https://github.com/YunoHost/apps/pull/2724) Add lichen-markdown to yunohost apps catalog : With [this line in place](https://github.com/YunoHost-Apps/lichenmarkdown_ynh/blob/main/tests.toml#L9) the app will rema...
[19:19:59] <Yunohost Git/Infra notifications> [apps] o​rhtej2 [commented](https://github.com/YunoHost/apps/pull/2724#issuecomment-2498845407) on [issue #2724](https://github.com/YunoHost/apps/pull/2724) Add lichen-markdown to yunohost apps catalog : Testing naive fix here: YunoHost-Apps/lichenmarkdown_ynh#3.
[19:30:06] <Yunohost Git/Infra notifications> [apps] o​rhtej2 [commented](https://github.com/YunoHost/apps/pull/2724#issuecomment-2498864528) on [issue #2724](https://github.com/YunoHost/apps/pull/2724) Add lichen-markdown to yunohost apps catalog : Their tagging policy is questionable at best: https://codeberg.org/ukrudt.net/lichen-markdown/releases/tag/v1.0.0 > pre...
[19:54:36] <Yunohost Git/Infra notifications> [apps] m​hfowler [commented](https://github.com/YunoHost/apps/pull/2724#issuecomment-2498907137) on [issue #2724](https://github.com/YunoHost/apps/pull/2724) Add lichen-markdown to yunohost apps catalog : @orhtej2 wrt the tagging, one of the goals of the project is to provide a CMS in as few KB as possible, so thats why th...
[21:10:56] <Yunohost Git/Infra notifications> [apps] e​ricgaspar [commented](https://github.com/YunoHost/apps/pull/2724#discussion_r1857351003) on pull request #2724 Add lichen-markdown to yunohost apps catalog : suggestion
[21:11:22] <Yunohost Git/Infra notifications> [apps] e​ricgaspar approved [pull request #2724](https://github.com/YunoHost/apps/pull/2724#pullrequestreview-2459643076) Add lichen-markdown to yunohost apps catalog
[21:11:31] <Yunohost Git/Infra notifications> [apps] e​ricgaspar merged [pull request #2724](https://github.com/YunoHost/apps/pull/2724): Add lichen-markdown to yunohost apps catalog
[21:11:31] <Yunohost Git/Infra notifications> [apps] e​ricgaspar pushed 1 commit to master: Add lichen-markdown to yunohost apps catalog (#2724) * Add lichen-markdown * Update apps.toml --------- Co-authored... ([f5ead3c0](https://github.com/YunoHost/apps/commit/f5ead3c00c5614a3827c44c82fe3dc92500f5915))
[21:50:26] <Yunohost Git/Infra notifications> [freshrss_ynh] d​r41nU opened [issue #193](https://github.com/YunoHost-Apps/freshrss_ynh/issues/193): Failed requirements while upgrading to 1.24.3 ynh1
[21:55:05] <Yunohost Git/Infra notifications> [nextcloud_ynh] V​OGUK [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754#issuecomment-2499114960) on [issue #754](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754) Nextcloud 30: I notice it says "testing" in the command line. When will it ready to update from the Yunohost GUI? :)
[22:00:17] <Yunohost Git/Infra notifications> [nextcloud_ynh] a​lexAubin [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754#issuecomment-2499123164) on [issue #754](https://github.com/YunoHost-Apps/nextcloud_ynh/issues/754) Nextcloud 30: It will be ready when it is deemed ready ... This is a community project, we dont provide timeline, we know people want...
[22:00:18] <Yunohost Git/Infra notifications> [nextcloud_ynh] WARNING: unknown issues action: locked
[22:07:17] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 created new branch orhtej2-patch-1
[22:07:17] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 pushed 1 commit to orhtej2-patch-1: Fix warnings ([79956e4d](https://github.com/YunoHost-Apps/freshrss_ynh/commit/79956e4d5b19eb036695202759ae61d30da4b8a4))
[22:08:24] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 opened [pull request #194](https://github.com/YunoHost-Apps/freshrss_ynh/pull/194): Fix warnings
[22:09:21] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 pushed 1 commit to orhtej2-patch-1: Update change_url ([298d0c17](https://github.com/YunoHost-Apps/freshrss_ynh/commit/298d0c17b235b14b8ff71a34281fd8b0be8a0bbc))
[22:10:01] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 pushed 1 commit to orhtej2-patch-1: Update change_url ([fec04b51](https://github.com/YunoHost-Apps/freshrss_ynh/commit/fec04b5183846b056da897be9d05ed5744e937bc))
[22:12:16] <Yunohost Git/Infra notifications> [freshrss_ynh] o​rhtej2 pushed 1 commit to orhtej2-patch-1: Update upgrade ([183a5ae0](https://github.com/YunoHost-Apps/freshrss_ynh/commit/183a5ae0e1d9994308b0b77138667121828e8ddd))
[22:14:37] <orhtej2> > <@yunohostinfra:matrix.org> [nextcloud_ynh] WARNING: unknown issues action: locked

ynhbot plz, 'rage ban hammer' action is known
[22:28:43] <Aleks (he/him/il/lui)> hmmm we're still not getting notifications from ci-apps 🤔
[22:53:43] <m606> Hello, I have trouble to configure nginx.conf
```
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
why trying to access a subdirectory (e.g. mydomain.tld/myapp/subdirectory/myfile.html leads to YNH login panel (app is supposed to be free to all visitors)?
[22:54:23] <m606> Hello, I have trouble to configure nginx.conf
```
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
why trying to access a subdirectory (e.g. mydomain.tld/myapp/subdirectory/myfile.html) leads to YNH login panel (app is supposed to be free to all visitors)?
[22:55:02] <m606> Hello, I have trouble to configure nginx.conf
```
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
why trying to access a subdirectory (e.g. mydomain.tld/myapp/subdirectory/myfile.html) leads to YNH login panel (app is set to be accessible to visitors)?
[22:57:14] <eric_G> is the `index` really `editor.html`?
[22:57:20] <m606> yes
[22:58:41] <eric_G> what is the app?
[22:59:32] <m606> not yet in catalog but... https://github.com/YunoHost-Apps/jsoncrack_ynh/tree/github_build
[23:00:10] <m606> (however nginx.conf on that repo is not up to date)
[23:06:01] <m606> also despite the portion below, going to mydomain.tld/jsoncrack/widget/ (with or without trailing slash) returns a 404 error
```
location __INSTALL_DIR__/widget/ {

# Path to source
alias __INSTALL_DIR__/;

try_files $uri /widget.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}

```
[23:07:05] <orhtej2> > <@m606:matrix.org> also despite the portion below, going to mydomain.tld/jsoncrack/widget/ (with or without trailing slash) returns a 404 error
> ```
> location __INSTALL_DIR__/widget/ {
>
> # Path to source
> alias __INSTALL_DIR__/;
>
> try_files $uri /widget.html;
>
> # Include SSOWAT user panel.
> include conf.d/yunohost_panel.conf.inc;
> }
>
> ```

this is wrong as it looks for widget.html in root of `$install_dir`, not `$install_dir/widget`
[23:07:32] <orhtej2> (in the server file system that is)
[23:08:12] <m606> I forgot to mention that widget.html is in $install_dir
[23:08:13] <m606> like editor.html
[23:10:06] <m606> is nginx doing any caching by default on YNH instance?
[23:10:21] <orhtej2> > <@m606:matrix.org> I forgot to mention that widget.html is in $install_dir

reorder these as I believe nginx processes rules top to bottom, ending on the first match
[23:10:34] <orhtej2> so first give the more specific subpath, then general path
[23:10:47] <orhtej2> > <@m606:matrix.org> is nginx doing any caching by default on YNH instance?

no
[23:11:00] <orhtej2> strange that it shows 302 not 404 🤔
[23:20:56] <m606> Hmm now that nginx.conf is giving me 404 everywhere
[23:20:57] <m606> ```
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location __PATH__/editor/ {

# Path to source
alias __INSTALL_DIR__/;

try_files $uri /editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location __PATH__/widget/ {

# Path to source
alias __INSTALL_DIR__/;

try_files $uri widget.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
[23:21:02] <m606> even for mydomain.tld/jsoncrack which was working before
[23:26:21] <m606> but with this I can access mydomain.tld/jsoncrack/
```
location /jsoncrack/ {

# Path to source
alias /var/www/jsoncrack/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
[23:39:52] <m606> > so first give the more specific subpath, then general path

reordering that way doesn't help
```
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __INSTALL_DIR__/editor/ {

# Path to source
alias __INSTALL_DIR__/;

try_files $uri /editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location __INSTALL_DIR__/widget/ {

# Path to source
alias __INSTALL_DIR__/;

try_files $uri widget.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/;

index editor.html;

# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
```
[23:52:06] <m606> oh but __INSTALL_DIR__ variable is meant to be replaced by $install_dir at install only ? I was modifying the already installed nginx.conf at /etc/nginx/conf.d/mydomain.tld.d/jsoncrack.conf
[23:55:51] <Aleks (he/him/il/lui)> ...not at install only ..?
[23:58:25] <m606> is it a 'no' answer ? )