feat: added mirrors for go and for golang image and change the name gate to proxy

This commit is contained in:
db123-test
2026-05-04 10:49:44 +03:30
parent b094c78318
commit 7a2bd72311
11 changed files with 62 additions and 58 deletions

View File

@@ -9,7 +9,7 @@
## Build
```bash
docker build -t yejayekhoob/auth-gate:latest .
docker build -t yejayekhoob/auth-proxy:latest .
```
## Run
@@ -20,10 +20,10 @@ docker-compose up -d
## NGINX integration
### 1. Create the auth-gate include file
### 1. Create the auth-proxy include file
```nginx
# /etc/nginx/snippets/auth-gate.conf
# /etc/nginx/snippets/auth-proxy.conf
#
# This is the shared auth_request configuration. Include it in any
# server block that needs authentication.
@@ -33,10 +33,10 @@ docker-compose up -d
# spoofed. If you need a CDN, configure the realip module instead
# of trusting the header.
location = /_auth_gate {
location = /_auth_proxy {
internal;
proxy_pass http://auth-gate:8080/auth;
proxy_pass http://auth-proxy:8080/auth;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
@@ -54,7 +54,7 @@ server {
listen 443 ssl;
server_name phpmyadmin.yejayekhoob.com;
include /etc/nginx/snippets/auth-gate.conf;
include /etc/nginx/snippets/auth-proxy.conf;
location / {
proxy_pass http://phpmyadmin:80/;
@@ -74,9 +74,9 @@ nginx -s reload
| Variable | Description | Default |
|----------|-------------|---------|
| AUTH_GATE_PORT | HTTP listen port | 8080 |
| AUTH_GATE_API_TOKEN | API bearer token | (none) |
| AUTH_GATE_DB_PATH | SQLite database path | ./data/auth-gate.db |
| AUTH_proxy_PORT | HTTP listen port | 8080 |
| AUTH_proxy_API_TOKEN | API bearer token | (none) |
| AUTH_proxy_DB_PATH | SQLite database path | ./data/auth-proxy.db |
| DATA_DIR | Data directory | /data |
| CLEANUP_INTERVAL | Cleanup interval | 60s |