aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 5786ad3aa76b8720f9d3d95de964ffc438b4fc6e (plain) (blame)
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
31
# ctucx' gallery
a little introduction into this software.

## get it 
```shell=
[user@pc ~]$ git clone https://git.ctu.cx/ctucx/gallery/
[user@pc ~]$ cd gallery/
[user@pc ~]$ nimble build
```

## use it
```shell=
[user@pc ~]$ ./gallery <config.file>
```

## dependencies
Dependencies: ImageMagick, nim >= 1.0.6, nimble

## infos
When running the program, a config file must be specified, then the program creates all necessary HTML and CSS objects to display the pages correctly and creates images in the following sizes: medium: 1920x1080, thumbnail: 200x200

it's recommended to disable caching for the html files, here is an example config snippet for nginx:
```
location ~* \.html$ {
  add_header Last-Modified $date_gmt;
  add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  if_modified_since off;
  expires off;
  etag off;
}
```