blob: b1bc0d6757c71c4071c715b6d7d60eeed054ea9b (
plain)
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
|
<!--
SPDX-FileCopyrightText: 2021 hellekin
SPDX-FileCopyrightText: 2021 petites singularités
SPDX-License-Identifier: LAL-1.3
-->
# dream.public.cat
This repository contains the home page visible at https://dream.public.cat
## Usage
Pushing to the `main` branch deploys to https://dream-stage.public.cat/.
Pushing a [SemVer] tag deploys to https://dream.public.cat/.
### Web Hook
E.g., `curl -i -X POST https://$CREDENTIALS@dream.public.cat/api/deploy/production/v0.1.0`
In `dream.public.cat` Nginx configuration:
```nginx
location /api {
auth_basic 'DREAM API';
# htpasswd -c -B -C 9 dream.public.cat.access deploy
# v 0700 v 0600
auth_basic_user_file secrets/dream.public.cat.access;
}
# LUA
location ~ ^/api/deploy/(stage|production)(/?(v.+))*$ {
default_type 'text/plain';
set $to $1;
set $tag $3;
content_by_lua_file /etc/nginx/scripts/dream-api.lua;
}
```
See `dream-api.lua` for the listener.
## License
Copyright © 2020-2021 petites singularités
Code is AGPL-3.0.
Content is LAL-1.3.
See LICENSES directory.
|