Wikitten, personal wiki static app - nginx config

Hi, I’m pleased to say that finally I’ve found a personal wiki app adapted to my needs: wikitten - simple, markdown-formatted from scratch and easy to use.

Thanks to the custom webapp function on Yunohost it’s awesomely easy to install, only copy and paste files. But there is a problem: one of the requirements is the Apache webserver (with mod_rewrite).

The solution to this problem is documented with an example of nginx configuration:

# serve static files directly
location ~* ^/static/(css|js|img|fonts)/.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt|swf|pdf|txt|bmp|eot|svg|ttf|woff|woff2)$ {
    access_log        off;
    expires           max;
}
location / {
    rewrite ^(.*)$ /index.php last;
}
location ~ /index.php$ {
    # Your php module configuration
}

But i would like to ask if anybody can help me to do this in custom_webapp for Yunohost. Perhaps i would have to fork my_webapp and introduce some settings for nginx in some part of the code?

Btw, do you like this app perhaps for future integration?

Hi, I think you can just reuse the my_webapp one except the part with PATHTOCHANGE/admin

like scith say:

  • create a new repo wikitten_ynh …
  • copie my_webapp file in it…
  • adjuste what is neadeed for make it wotking…

And commit… I’m sure many will be happy to test :wink:

the ngnix config is there… conf/nginx.conf
a start point (if you don’t find it…) YunoHost • index

@DavidGNavas we can also have a look into https://github.com/YunoHost/example_ynh