grocy/public
Stefan Haller ee2fadb799 Run multi instances by making GROCY_DATAPATH customizable
Previously the data directory was fixed to the GROCY_DATAPATH constant.

This commit allows overriding the default GROCY_DATAPATH location by the
FastCGI parameter `GROCY_DATAPATH`. Relative paths are modified and get
rooted at the top level grocy installation directory.

The previous behaviour is preserved in case the new parameter is absent.

The following example nginx config snippet shows how to run multiple
instances.

```nginx
server {
    location /instance1/ {
        alias /var/www/grocy/;
        set $instance instance1;
        try_files $uri @grocy;
    }

    location /instane2/ {
        alias /var/www/grocy/;
        set $instance instance2;
        try_files $uri @grocy;
    }

    location @grocy {
        fastcgi_pass 127.0.0.1:9000;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME index.php;
        fastcgi_param GROCY_DATAPATH data/$instance;
    }
}
```
2020-08-02 00:00:52 +02:00
..
components_unmanaged/noto-sans-v9-latin Updated unmanaged dependencies (font) 2019-09-28 08:53:59 +02:00
css Recipe updates (#795) 2020-04-24 17:41:57 +02:00
img Added all application icon variants (closes #159) 2019-03-02 08:56:53 +01:00
js Make GetUriParam work with special characters (eg. "&") (#793) 2020-04-23 20:48:48 +02:00
uisounds Implemented "Scan mode" 2020-01-26 15:35:01 +01:00
viewjs Little adjustments and changelog for #788 2020-04-24 17:51:48 +02:00
.htaccess Reorganize project part 3 2018-04-12 21:13:38 +02:00
index.php Run multi instances by making GROCY_DATAPATH customizable 2020-08-02 00:00:52 +02:00
robots.txt Move public stuff into subdirectory 2018-04-11 20:47:03 +02:00