A web server to stick in front of Gollery (ideally nginx).
Installation
Install Gollery:
go get github.com/madcowfred/Gollery
cd $GOPATH/github.com/madcowfred/Gollery
go build
Copy the sample config file and edit it:
cp sample.conf gollery.conf
vi gollery.conf
Run Gollery:
./Gollery
Set up some nginx vhosts:
# Gollery is served from root
server {
listen 80;
server_name images.example.com;
location / {
proxy_pass http://127.0.0.1:8089;
proxy_set_header X-Gollery Test; # for [Gallery "Test"] in gollery.conf
proxy_set_header X-Real-IP $remote_addr;
}
}
# Gollery is not served from root
server {
listen 80;
server_name www.example.com;
# BaseURL should be set to /images/ for this gallery in gollery.conf
location /images/ {
rewrite /images(/.*) $1 break;
proxy_pass http://127.0.0.1:8089;
proxy_set_header X-Gollery Moo; # for [Gallery "Moo"] in gollery.conf
proxy_set_header X-Real-IP $remote_addr;
}
}