22032025-1
This commit is contained in:
parent
027b76eba4
commit
64744aa74c
2983 changed files with 2432 additions and 24 deletions
12
.air.toml
12
.air.toml
|
|
@ -1,20 +1,20 @@
|
|||
root = "."
|
||||
testdata_dir = "testdata"
|
||||
tmp_dir = "tmp"
|
||||
tmp_dir = "./z/tmp"
|
||||
|
||||
[build]
|
||||
args_bin = []
|
||||
bin = "./_tmp/main"
|
||||
cmd = "go build -o ./_tmp/main ./z"
|
||||
bin = "./z/tmp/main"
|
||||
cmd = "go build -o ./z/tmp/main ./z/."
|
||||
delay = 1000
|
||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
||||
exclude_dir = ["assets", "tmp", "vendor", "testdata","backups","database"]
|
||||
exclude_file = []
|
||||
exclude_regex = ["_test.go"]
|
||||
exclude_unchanged = false
|
||||
follow_symlink = false
|
||||
full_bin = ""
|
||||
include_dir = []
|
||||
include_ext = ["go", "tpl", "tmpl", "html"]
|
||||
include_ext = ["go", "tpl", "tmpl", "html","yaml","yml"]
|
||||
include_file = []
|
||||
kill_delay = "0s"
|
||||
log = "build-errors.log"
|
||||
|
|
@ -48,5 +48,5 @@ tmp_dir = "tmp"
|
|||
proxy_port = 0
|
||||
|
||||
[screen]
|
||||
clear_on_rebuild = true
|
||||
clear_on_rebuild = false
|
||||
keep_scroll = true
|
||||
|
|
|
|||
8
.env
Normal file
8
.env
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
CONFIG_PATH = ./z/config
|
||||
CONFIG_NAME = config
|
||||
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_USER=admin
|
||||
DB_PASSWORD=admin
|
||||
DB_NAME=zprox
|
||||
BIN
_tmp/main
BIN
_tmp/main
Binary file not shown.
126
backups/authcopy.bkup
Normal file
126
backups/authcopy.bkup
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
routers:
|
||||
keycloak:
|
||||
priority: 1
|
||||
entryPoint: https
|
||||
service: keycloak
|
||||
routes:
|
||||
- Host(`auth.z.com`).PathPrefix(`/`)
|
||||
tls:
|
||||
certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# openid:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: openid
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/openid`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# issuer:
|
||||
# priority: 2
|
||||
# entryPoint: https
|
||||
# service: issuer
|
||||
# routes:
|
||||
# - Host(`auth.z.com`).PathPrefix(`/issuer`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# config:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: config
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/config`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# authorization:
|
||||
# priority: 2
|
||||
# entryPoint: https
|
||||
# service: authorization
|
||||
# routes:
|
||||
# - Host(`auth.z.com`).PathPrefix(`/auth`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# token:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: token
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/token`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# introspection:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: introspection
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/introspect`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# userinfo:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: userinfo
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/userinfo`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# logout:
|
||||
# priority: 2
|
||||
# entryPoint: https
|
||||
# service: logout
|
||||
# routes:
|
||||
# - Host(`auth.z.com`).PathPrefix(`/logout`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
# certs:
|
||||
# priority: 2
|
||||
# entryPoint: http
|
||||
# service: certs
|
||||
# routes:
|
||||
# - Host(`127.0.0.1`).PathPrefix(`/keycloak/certs`)
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# stripPrefix: true
|
||||
|
||||
services:
|
||||
keycloak: http://127.0.0.1:8080
|
||||
|
||||
auth:
|
||||
keycloak:
|
||||
sessionSecret: keycloak
|
||||
paths:
|
||||
prefix: /auth
|
||||
login: /login
|
||||
logout: /logout
|
||||
callback: /callback
|
||||
postlogout: /post-logout
|
||||
openId:
|
||||
realm: dev
|
||||
client_id: dev_client
|
||||
client_secret: dWhSJgARBAuBAXN7sUTpqpIq2sKQdugs
|
||||
redirect_uri: https://app.z.com/auth/callback
|
||||
post_logout_redirect_uri: https://app.z.com/auth/post-logout
|
||||
issuer: https://auth.z.com/realms/dev/
|
||||
authURL: https://auth.z.com/realms/dev/protocol/openid-connect/auth
|
||||
logoutUrl: https://auth.z.com/realms/dev/protocol/openid-connect/logout
|
||||
config: https://auth.z.com/realms/dev/.well-known/openid-configuration
|
||||
tokenURL: http://127.0.0.1:8080/realms/dev/protocol/openid-connect/token
|
||||
userURL: http://127.0.0.1:8080/realms/dev/protocol/openid-connect/userinfo
|
||||
jwksURI: http://127.0.0.1:8080/realms/dev/protocol/openid-connect/certs
|
||||
48
backups/configcopy.bkup
Normal file
48
backups/configcopy.bkup
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
routers:
|
||||
|
||||
app:
|
||||
entryPoint: https
|
||||
service: app
|
||||
routes:
|
||||
- Host(`app.z.com`)
|
||||
tls:
|
||||
certProvider: default
|
||||
auth:
|
||||
enabled: true
|
||||
provider: keycloak
|
||||
|
||||
# app-user:
|
||||
# # priority: 1000
|
||||
# entryPoint: https
|
||||
# service: app
|
||||
# routes:
|
||||
# - Host(`app.z.com`).Path(`/test1`)
|
||||
# # stripPrefix: true
|
||||
# tls:
|
||||
# certProvider: default
|
||||
# auth:
|
||||
# # jwt:
|
||||
# # allow:
|
||||
# # email:
|
||||
# # - zeevdukeman@gmail.com
|
||||
|
||||
# enabled: true
|
||||
# provider: keycloak
|
||||
|
||||
services:
|
||||
app: http://127.0.0.1:3001
|
||||
|
||||
|
||||
entrypoints:
|
||||
https:
|
||||
address: :443
|
||||
tls:
|
||||
enabled: true
|
||||
http:
|
||||
address: :80
|
||||
|
||||
tls:
|
||||
certProviders:
|
||||
default:
|
||||
key: z/assets/certs/z.com.key.pem
|
||||
cert: z/assets/certs/z.com.cert.pem
|
||||
1
backups/z_bkup_1
Submodule
1
backups/z_bkup_1
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 2c7fbd66172399f01cd7351a4980780fdc64678d
|
||||
23
database/docker-compose.yml
Normal file
23
database/docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
databse:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: admin
|
||||
POSTGRES_PASSWORD: admin
|
||||
POSTGRES_DB: zprox
|
||||
ports:
|
||||
- "5432:5432" #maps host's port 5432 to the container's port 5432.
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data/
|
||||
networks:
|
||||
database:
|
||||
ipv4_address: 10.100.0.1
|
||||
|
||||
networks:
|
||||
database:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 10.100.0.0/24
|
||||
gateway: 10.100.0.254
|
||||
1
database/postgres_data/PG_VERSION
Normal file
1
database/postgres_data/PG_VERSION
Normal file
|
|
@ -0,0 +1 @@
|
|||
17
|
||||
BIN
database/postgres_data/base/1/112
Normal file
BIN
database/postgres_data/base/1/112
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/113
Normal file
BIN
database/postgres_data/base/1/113
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1247
Normal file
BIN
database/postgres_data/base/1/1247
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1247_fsm
Normal file
BIN
database/postgres_data/base/1/1247_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1247_vm
Normal file
BIN
database/postgres_data/base/1/1247_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1249
Normal file
BIN
database/postgres_data/base/1/1249
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1249_fsm
Normal file
BIN
database/postgres_data/base/1/1249_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1249_vm
Normal file
BIN
database/postgres_data/base/1/1249_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1255
Normal file
BIN
database/postgres_data/base/1/1255
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1255_fsm
Normal file
BIN
database/postgres_data/base/1/1255_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1255_vm
Normal file
BIN
database/postgres_data/base/1/1255_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1259
Normal file
BIN
database/postgres_data/base/1/1259
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1259_fsm
Normal file
BIN
database/postgres_data/base/1/1259_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/1259_vm
Normal file
BIN
database/postgres_data/base/1/1259_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13402
Normal file
BIN
database/postgres_data/base/1/13402
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13402_fsm
Normal file
BIN
database/postgres_data/base/1/13402_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13402_vm
Normal file
BIN
database/postgres_data/base/1/13402_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/13405
Normal file
0
database/postgres_data/base/1/13405
Normal file
BIN
database/postgres_data/base/1/13406
Normal file
BIN
database/postgres_data/base/1/13406
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13407
Normal file
BIN
database/postgres_data/base/1/13407
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13407_fsm
Normal file
BIN
database/postgres_data/base/1/13407_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13407_vm
Normal file
BIN
database/postgres_data/base/1/13407_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/13410
Normal file
0
database/postgres_data/base/1/13410
Normal file
BIN
database/postgres_data/base/1/13411
Normal file
BIN
database/postgres_data/base/1/13411
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13412
Normal file
BIN
database/postgres_data/base/1/13412
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13412_fsm
Normal file
BIN
database/postgres_data/base/1/13412_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13412_vm
Normal file
BIN
database/postgres_data/base/1/13412_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/13415
Normal file
0
database/postgres_data/base/1/13415
Normal file
BIN
database/postgres_data/base/1/13416
Normal file
BIN
database/postgres_data/base/1/13416
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13417
Normal file
BIN
database/postgres_data/base/1/13417
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13417_fsm
Normal file
BIN
database/postgres_data/base/1/13417_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/13417_vm
Normal file
BIN
database/postgres_data/base/1/13417_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/13420
Normal file
0
database/postgres_data/base/1/13420
Normal file
BIN
database/postgres_data/base/1/13421
Normal file
BIN
database/postgres_data/base/1/13421
Normal file
Binary file not shown.
0
database/postgres_data/base/1/1417
Normal file
0
database/postgres_data/base/1/1417
Normal file
0
database/postgres_data/base/1/1418
Normal file
0
database/postgres_data/base/1/1418
Normal file
BIN
database/postgres_data/base/1/174
Normal file
BIN
database/postgres_data/base/1/174
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/175
Normal file
BIN
database/postgres_data/base/1/175
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2187
Normal file
BIN
database/postgres_data/base/1/2187
Normal file
Binary file not shown.
0
database/postgres_data/base/1/2224
Normal file
0
database/postgres_data/base/1/2224
Normal file
BIN
database/postgres_data/base/1/2228
Normal file
BIN
database/postgres_data/base/1/2228
Normal file
Binary file not shown.
0
database/postgres_data/base/1/2328
Normal file
0
database/postgres_data/base/1/2328
Normal file
0
database/postgres_data/base/1/2336
Normal file
0
database/postgres_data/base/1/2336
Normal file
BIN
database/postgres_data/base/1/2337
Normal file
BIN
database/postgres_data/base/1/2337
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2579
Normal file
BIN
database/postgres_data/base/1/2579
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2600
Normal file
BIN
database/postgres_data/base/1/2600
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2600_fsm
Normal file
BIN
database/postgres_data/base/1/2600_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2600_vm
Normal file
BIN
database/postgres_data/base/1/2600_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2601
Normal file
BIN
database/postgres_data/base/1/2601
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2601_fsm
Normal file
BIN
database/postgres_data/base/1/2601_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2601_vm
Normal file
BIN
database/postgres_data/base/1/2601_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2602
Normal file
BIN
database/postgres_data/base/1/2602
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2602_fsm
Normal file
BIN
database/postgres_data/base/1/2602_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2602_vm
Normal file
BIN
database/postgres_data/base/1/2602_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2603
Normal file
BIN
database/postgres_data/base/1/2603
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2603_fsm
Normal file
BIN
database/postgres_data/base/1/2603_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2603_vm
Normal file
BIN
database/postgres_data/base/1/2603_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/2604
Normal file
0
database/postgres_data/base/1/2604
Normal file
BIN
database/postgres_data/base/1/2605
Normal file
BIN
database/postgres_data/base/1/2605
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2605_fsm
Normal file
BIN
database/postgres_data/base/1/2605_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2605_vm
Normal file
BIN
database/postgres_data/base/1/2605_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2606
Normal file
BIN
database/postgres_data/base/1/2606
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2606_fsm
Normal file
BIN
database/postgres_data/base/1/2606_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2606_vm
Normal file
BIN
database/postgres_data/base/1/2606_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2607
Normal file
BIN
database/postgres_data/base/1/2607
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2607_fsm
Normal file
BIN
database/postgres_data/base/1/2607_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2607_vm
Normal file
BIN
database/postgres_data/base/1/2607_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2608
Normal file
BIN
database/postgres_data/base/1/2608
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2608_fsm
Normal file
BIN
database/postgres_data/base/1/2608_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2608_vm
Normal file
BIN
database/postgres_data/base/1/2608_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2609
Normal file
BIN
database/postgres_data/base/1/2609
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2609_fsm
Normal file
BIN
database/postgres_data/base/1/2609_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2609_vm
Normal file
BIN
database/postgres_data/base/1/2609_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2610
Normal file
BIN
database/postgres_data/base/1/2610
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2610_fsm
Normal file
BIN
database/postgres_data/base/1/2610_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2610_vm
Normal file
BIN
database/postgres_data/base/1/2610_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/2611
Normal file
0
database/postgres_data/base/1/2611
Normal file
BIN
database/postgres_data/base/1/2612
Normal file
BIN
database/postgres_data/base/1/2612
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2612_fsm
Normal file
BIN
database/postgres_data/base/1/2612_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2612_vm
Normal file
BIN
database/postgres_data/base/1/2612_vm
Normal file
Binary file not shown.
0
database/postgres_data/base/1/2613
Normal file
0
database/postgres_data/base/1/2613
Normal file
BIN
database/postgres_data/base/1/2615
Normal file
BIN
database/postgres_data/base/1/2615
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2615_fsm
Normal file
BIN
database/postgres_data/base/1/2615_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2615_vm
Normal file
BIN
database/postgres_data/base/1/2615_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2616
Normal file
BIN
database/postgres_data/base/1/2616
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2616_fsm
Normal file
BIN
database/postgres_data/base/1/2616_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2616_vm
Normal file
BIN
database/postgres_data/base/1/2616_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2617
Normal file
BIN
database/postgres_data/base/1/2617
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2617_fsm
Normal file
BIN
database/postgres_data/base/1/2617_fsm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2617_vm
Normal file
BIN
database/postgres_data/base/1/2617_vm
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2618
Normal file
BIN
database/postgres_data/base/1/2618
Normal file
Binary file not shown.
BIN
database/postgres_data/base/1/2618_fsm
Normal file
BIN
database/postgres_data/base/1/2618_fsm
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue