init
This commit is contained in:
commit
34a9770d10
|
@ -0,0 +1,4 @@
|
|||
TYPE=amusewiki
|
||||
|
||||
DOMAIN={{ .Domain }}
|
||||
LETS_ENCRYPT_ENV=production
|
|
@ -0,0 +1 @@
|
|||
.envrc
|
|
@ -0,0 +1,51 @@
|
|||
# amusewiki
|
||||
|
||||
> One line description of the recipe
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**: Apps
|
||||
* **Status**: 0
|
||||
* **Image**: [`amusewiki`](https://hub.docker.com/rojen/amusewiki), 4, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Email**: No
|
||||
* **Tests**: No
|
||||
* **SSO**: No
|
||||
|
||||
<!-- endmetadata -->
|
||||
|
||||
## Quick start
|
||||
|
||||
* `abra app new amusewiki --secrets`
|
||||
* `abra app config <app-name>`
|
||||
* `abra app deploy <app-name>`
|
||||
|
||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
|
||||
## Post-install
|
||||
|
||||
> WARNING: You probably should not use this recipe. `amusewiki` is best
|
||||
> served on a bare metal Debian install. See [packages.amusewiki.org](https://packages.amusewiki.org)
|
||||
> for more...
|
||||
|
||||
- `abra app run <domain> app bash -u root`
|
||||
- `sqlite3 /var/lib/dbconfig-common/sqlite3/amusewiki/amusewiki`
|
||||
- `update site SET canonical = '<domain>' WHERE canonical = 'amusewiki.localdomain';`
|
||||
- edit `/etc/nginx/sites-enabled/amusewikidebian`
|
||||
|
||||
```
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name <domain>;
|
||||
access_log /var/log/nginx/<domain>.log combined;
|
||||
error_log /var/log/nginx/<domain>.err.log;
|
||||
client_max_body_size 8m;
|
||||
include amusewikidebian_include;
|
||||
}
|
||||
```
|
||||
|
||||
- change `/etc/nginx/amusewiki_debian` from `fastcgi_param HTTPS $https
|
||||
if_not_empty` to `fastcgi_param HTTPS on`
|
||||
- `nginx -t && service nginx reload`
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: rojen/amusewiki:package
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=package+0.1.0"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
Loading…
Reference in New Issue