Auth

shao f25bd2fa6c log il y a 3 jours
api f25bd2fa6c log il y a 3 jours
cmd a24e55bacf 优化代码 il y a 1 semaine
common 9a15371314 CreateImage il y a 3 jours
config b3a428328d DROS il y a 2 semaines
dto 1ae06dd30f first commit il y a 3 semaines
logger f25bd2fa6c log il y a 3 jours
models b87b0fa307 vet view il y a 1 semaine
router f25bd2fa6c log il y a 3 jours
rpc_idl @ 8ad07de374 f25bd2fa6c log il y a 3 jours
service f25bd2fa6c log il y a 3 jours
static a24e55bacf 优化代码 il y a 1 semaine
.gitignore 1ae06dd30f first commit il y a 3 semaines
.gitmodules c96e1dfb47 add rpc_idl il y a 3 semaines
Makefile 1ae06dd30f first commit il y a 3 semaines
README.md 1ae06dd30f first commit il y a 3 semaines
go.mod 1ae06dd30f first commit il y a 3 semaines
go.sum 1ae06dd30f first commit il y a 3 semaines
main.go 1ae06dd30f first commit il y a 3 semaines

README.md

DR Authentication Server

env

  • golang 1.24
  • postgres14

run

go run main.go run

deploy

# vim /etc/systemd/system/auth-server.service
[Unit]
Description=dr authentication service
After=network.target
 
[Service]
Type=simple
WorkingDirectory=xxx/DRAuthServer
ExecStart=xxx/DRAuthServer/auth-server run
 
[Install]
WantedBy=multi-user.target

# 重新加载systemd配置
sudo systemctl daemon-load

# 启动服务
sudo systemctl restart auth-server.service