A collection of example config files for running shimmie in an optimised way with various different web servers.
The shimmie2-examples repo needs to be checked out adjacent to a shimmie2 checkout,
ie each of these example web servers are configured to load the app from ../shimmie2/
With the two repos checked out, docker compose up
will run some configurations:
- http://localhost:4010 - nginx + remote php-fpm
- http://localhost:4011/gallery - nginx with subdir
- http://localhost:4020 - lighttpd + local php-fpm
- http://localhost:4021/gallery - lighttpd with subdir
- http://localhost:4030 - varnish (caching proxy in front of nginx)
- http://localhost:4040 - apache + mod_php
- http://localhost:4041/gallery - apache + mod_php with subdir
- Also a Tor hidden service - you'll need to look at
./tor/hostname
to figure out the hostname because it is uniquely generated each time. The Tor Proxy will be listening on port 4031
./test.sh
will test, for each configuration:
- niceurls work (
/nicetest
returns "ok") - uglyurls work (
/index.php?q=nicetest
returns "ok") - cache headers work (static files should be cached for one day)
- encoded slashes work in niceurls (
/nicedebug/foo%2Fbar/1
) - encoded slashes work in uglyurls (
/index.php?nicedebug/foo%2Fbar/1
) - urlencoded urls get decoded (
post%2Flist
)