summaryrefslogtreecommitdiff
path: root/README.md
blob: f42623ecfff3519ba2ec443612294ef9f189b52a (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# achernar

This repository contains the source code for [Achernar's webservice](https://achernar.dk) at `https://achernar.dk`.

## Testing

Use the installation script at `install.sh` to install the server.

If using nginx, add the following server to your configuration (assuming installation at `/srv/achernar`):

```
server {
	listen      8080;
	server_name localhost;

	location = / {
		return 307 /html/achernar.html;
	}

	location = /apple-touch-icon.png {
		alias /srv/achernar/apple-touch-icon.png;
	}

	location = /favicon.ico {
		alias /srv/achernar/favicon.ico;
	}

	location /css {
		alias /srv/achernar/css;
	}

	location /font {
		alias /srv/achernar/font;
	}

	location /html {
		alias /srv/achernar/html;
		ssi   on;
	}

	location /image {
		alias /srv/achernar/image;
	}

	location /include {
		alias /srv/achernar/include;
	}

	location /js {
		alias /srv/achernar/js;
	}

	location /svg {
		alias /srv/achernar/svg;
	}
}
```