Skip to content

Commit f9672fc

Browse files
committed
add info about apt (fixes #12)
1 parent 9d824a7 commit f9672fc

File tree

3 files changed

+86
-10
lines changed

3 files changed

+86
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Since `0.3.3` Linux, Darwin and even Windows OS supported: pre-built binaries co
3232

3333
TL;DR;
3434

35-
* for production for debian servers - use ~~bintray repository~~ github release (recommend)
35+
* for production for debian servers - use `apt.reddec.dev` (see docs)
3636
* locally or non-debian server - [download binary](https://github.com/reddec/trusted-cgi/releases) and run
3737
* for quick tests or for limited production - use docker image (`docker run --rm -p 3434:3434 reddec/trusted-cgi`)
3838

docs/administrating/installation.md

+84-8
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,102 @@ title: Installation
44
parent: Administrating
55
nav_order: 1
66
---
7+
78
{:toc:}
9+
810
# Install
911

1012
TL;DR;
1113

12-
* for production for debian servers - use ~~bintray repository~~ github release (recommend)
14+
* for production for debian servers - use `apt.reddec.net`
1315
* locally or non-debian server - download binary and run
1416
* for quick tests or for limited production - use docker image
1517

1618
## Debian/Ubuntu
1719

18-
Download the latest [release](https://github.com/reddec/trusted-cgi/releases).
20+
Packages are served via Cloudflare R2 CDN (using [aptly](https://www.aptly.info/)) and signed by public key available
21+
in https://apt.reddec.dev/archive.key.
22+
23+
> Note: please bear in mind it's non-commercial project and some rate-limits could be applied by me to CDN if the total
24+
> bill will be too high.
25+
26+
<details>
27+
<summary>Public key</summary>
28+
29+
```
30+
-----BEGIN PGP PUBLIC KEY BLOCK-----
31+
32+
mQGNBGWOhzsBDADRzPhuK/gccCAOfO323eiq4wyNJXNC/shyS+IVR2FJkABM6oPK
33+
y6i4DWH3xoqhFVgi2wvmUZjqUpX/TG1Qw2dXHehEXqcdBo8qxPbC/FgCLi5HFZUd
34+
rFQexDpy0p43U/85fnu7P2Pi+D4UMDvWD0qzPqFbEGx+A7HVfnE5zMtdd4n1Mb8o
35+
pEgPWieFPMpMd1XNjHuKm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+
DC+v2klpgRf3WrXJY+GvJYLKaqboncsBpZOpLBYVKAkvN7Psg+GEgkeClRksZLpn
68+
VQncCBi3sc/SKAVUD76kc27o9avEuP5LpJFILL5RdYk=
69+
=w6TJ
70+
-----END PGP PUBLIC KEY BLOCK-----
71+
```
72+
73+
</details>
74+
75+
### APT
76+
77+
Add key
78+
79+
wget -qO - https://apt.reddec.dev/archive.key | sudo tee /etc/apt/trusted.gpg.d/reddec-dev.asc
80+
81+
Add repository
82+
83+
sudo add-apt-repository 'deb https://apt.reddec.dev all main'
84+
85+
Install
86+
87+
sudo apt install trusted-cgi
88+
89+
Available packages:
90+
91+
- `trusted-cgi` (meta package, contains both server and client)
92+
- `trusted-cgi-server` (server only)
93+
- `trusted-cgi-client` (client only)
94+
95+
## Deb files (manual)
1996

97+
Download the latest [release](https://github.com/reddec/trusted-cgi/releases).
2098

2199
Install your distribution:
22100

23-
> Note: debian repository currently unavailable, but DEB fiels are still available in GitHub releases.
24-
> We are looking for the replacement.
25-
26101
* standard (basic templates supported): `sudo apt install ./trusted-cgi_0.3.7_linux_amd64.deb`
27-
* minimal (actions will not work): `sudo apt install --no-install-recommends ./trusted-cgi_0.3.7_linux_amd64.deb`
102+
* minimal (actions will not work): `sudo apt install --no-install-recommends ./trusted-cgi_0.3.7_linux_amd64.deb`
28103
* maximum (all pre-made templates available): `sudo apt install ./trusted-cgi_0.3.7_linux_amd64.deb php-cli nodejs npm`
29104

30105
Of course, you may install required packages later.
@@ -48,8 +123,9 @@ initial admin password is `admin` (change it!).
48123
The docker image contains pre-installed python3 (+requests), node js (+axios) and php to let experiment with default
49124
functions.
50125

51-
There is light (around 8MB) docker image: `reddec/trusted-cgi:latest-light`. It contains only minimal set of pre-installed
52-
packages and could be useful to run pre-compiled binary functions or shell lambdas. Or to use as a base image.
126+
There is light (around 8MB) docker image: `reddec/trusted-cgi:latest-light`. It contains only minimal set of
127+
pre-installed
128+
packages and could be useful to run pre-compiled binary functions or shell lambdas. Or to use as a base image.
53129

54130
## From source
55131

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ So, 'cause I am a developer I decided to make my own wheels ;-)
101101

102102
TL;DR;
103103

104-
* for production for debian servers - use ~~bintray repository~~ github release (recommend)
104+
* for production for debian servers - use `apt.reddec.net`
105105
* locally or non-debian server - [download binary](https://github.com/reddec/trusted-cgi/releases) and run
106106
* for quick tests or for limited production - use docker image (`docker run --rm -p 3434:3434 reddec/trusted-cgi`)
107107

0 commit comments

Comments
 (0)