Auth

shao d319b852b1 log hai 1 día
api f25bd2fa6c log hai 2 días
cmd a24e55bacf 优化代码 hai 1 semana
common 9a15371314 CreateImage hai 2 días
config d319b852b1 log hai 1 día
dto 1ae06dd30f first commit hai 3 semanas
logger 382db106f0 log hai 1 día
models b87b0fa307 vet view hai 1 semana
router f25bd2fa6c log hai 2 días
rpc_idl @ 8ad07de374 f25bd2fa6c log hai 2 días
service f25bd2fa6c log hai 2 días
static d319b852b1 log hai 1 día
.gitignore 1ae06dd30f first commit hai 3 semanas
.gitmodules c96e1dfb47 add rpc_idl hai 3 semanas
Makefile 747aa5cf01 make hai 1 día
README.md 1ae06dd30f first commit hai 3 semanas
go.mod 1ae06dd30f first commit hai 3 semanas
go.sum 1ae06dd30f first commit hai 3 semanas
main.go 1ae06dd30f first commit hai 3 semanas

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