Set up PocketID login
This commit is contained in:
parent
c518a377fd
commit
1c34e0cb07
7 changed files with 75 additions and 6 deletions
21
README.md
21
README.md
|
@ -1,22 +1,31 @@
|
|||
# auth-server
|
||||
|
||||
The configs, tweaks, and pieces that make up the `login.starcat.systems` Authentik server.
|
||||
The configs, tweaks, and pieces that make up the `id.starcat.systems` accounts server.
|
||||
|
||||
[)](https://git.starcat.systems/starcat-infra/auth-server/src/branch/main)
|
||||
|
||||
## Contents
|
||||
- `pockey-id`:
|
||||
- `docker-compose.yml`: the Docker Compose file that runs Pocket ID
|
||||
- `.env`: environment variables to configure Pocket ID
|
||||
- `caddy`:
|
||||
- `Caddyfile`: the Caddy server configuration (reverse proxies Pocket ID)
|
||||
|
||||
## More Information
|
||||
For more information on this repo, please see [Pocket ID in the handbook](https://about.starcat.systems/handbook/infrastructure/security/pocket-id/).
|
||||
|
||||
## Repo Mirrors
|
||||
Repo contents are automatically pushed to the following mirrors:
|
||||
|
||||
[](https://git.starcat.systems/starcat-infra/git-server)
|
||||
[](https://git.starcat.systems/starcat-infra/auth-server)
|
||||
|
||||
[](https://git.sr.ht/~starcatsys/git-server)
|
||||
[](https://git.sr.ht/~starcatsys/auth-server)
|
||||
|
||||
[](https://gitlab.com/starcatsys-mirror/starcat-infra/git-server)
|
||||
[](https://gitlab.com/starcatsys-mirror/starcat-infra/auth-server)
|
||||
|
||||
⚠️ **These mirrors are not routinely monitored.** All issues and pull requests should be directed to the [main forge](https://git.starcat.systems/starcat-infra/git-server).
|
||||
⚠️ **These mirrors are not routinely monitored.** All issues and pull requests should be directed to the [main forge](https://git.starcat.systems/starcat-infra/auth-server).
|
||||
|
||||
*[Why do we mirror some repos?](https://about.starcat.systems/handbook/infrastructure/code/mirroring/)*
|
||||
|
||||
# Licensing Note
|
||||
The changes and customizations to configurations, projects, and files in this repo are released under the MIT license. Other files, including those from Authentik, Caddy, and images/logos may be released under different licenses.
|
||||
The changes and customizations to configurations, projects, and files in this repo are released under the MIT license. Other files, including those from Pocket ID, Caddy, and images/logos may be released under different licenses.
|
10
caddy/Caddyfile
Normal file
10
caddy/Caddyfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
##############################################################################
|
||||
# Caddyfile for PocketID
|
||||
# /etc/caddy/Caddyfile
|
||||
# After modifying, gracefully reload Caddy with `sudo systemctl reload caddy`
|
||||
##############################################################################
|
||||
|
||||
# Reverse proxy for PocketID
|
||||
id.starcat.systems {
|
||||
reverse_proxy 127.0.0.1:1411
|
||||
}
|
BIN
goauthentik.png
BIN
goauthentik.png
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
BIN
pocket-id.png
Normal file
BIN
pocket-id.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
11
pocket-id/.env
Normal file
11
pocket-id/.env
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Pocket ID .env app configuration
|
||||
# Configures the Pocket ID application
|
||||
# File location: /srv/pocket-id/.env
|
||||
# More information - git repo: https://git.starcat.systems/starcat-infra/auth-server
|
||||
# More information - handbook: https://about.starcat.systems/handbook/infrastructure/security/pocket-id/
|
||||
# See the documentation for more information: https://pocket-id.org/docs/configuration/environment-variables
|
||||
APP_URL=https://id.starcat.systems
|
||||
TRUST_PROXY=true
|
||||
MAXMIND_LICENSE_KEY=*REDACTED*
|
||||
PUID=1000
|
||||
PGID=1000
|
20
pocket-id/README.md
Normal file
20
pocket-id/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Pocket ID README
|
||||
## what
|
||||
The Docker Compose and `.env` files that run Pocket ID
|
||||
|
||||
## where
|
||||
```
|
||||
/srv/pocket-id/docker-compose.yml
|
||||
/srv/pocket-id/.env
|
||||
```
|
||||
|
||||
## redacted values
|
||||
For security, secrets have been redacted from this file. StarCat team members can find these values in [1Password](https://start.1password.com/open/i?a=B5NVCNGFJBCCLCDCN5FKFPGVBI&v=35hhast2kp5lgw3iud374426oa&i=ahsb5ohjmkyvfuoudj564xucgy&h=starcatsys.1password.com). Soon, these values will be autofilled from Vault when the container starts.
|
||||
|
||||
## making changes
|
||||
If you make changes to `.env` or need to upgrade Pocket ID, just pull the latest image and restart the service:
|
||||
|
||||
```
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
```
|
19
pocket-id/docker-compose.yml
Normal file
19
pocket-id/docker-compose.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Docker Compose file for PocketID
|
||||
# Location: /srv/pocket-id/docker-compose.yml
|
||||
|
||||
services:
|
||||
pocket-id:
|
||||
image: ghcr.io/pocket-id/pocket-id:v1
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
- 1411:1411
|
||||
volumes:
|
||||
- "./data:/app/data"
|
||||
# Optional healthcheck
|
||||
healthcheck:
|
||||
test: "curl -f http://localhost:1411/healthz"
|
||||
interval: 1m30s
|
||||
timeout: 5s
|
||||
retries: 2
|
||||
start_period: 10s
|
Loading…
Add table
Add a link
Reference in a new issue