Auth

shao f25bd2fa6c log há 2 dias atrás
api f25bd2fa6c log há 2 dias atrás
cmd a24e55bacf 优化代码 há 1 semana atrás
common 9a15371314 CreateImage há 3 dias atrás
config b3a428328d DROS há 1 semana atrás
dto 1ae06dd30f first commit há 3 semanas atrás
logger f25bd2fa6c log há 2 dias atrás
models b87b0fa307 vet view há 1 semana atrás
router f25bd2fa6c log há 2 dias atrás
rpc_idl @ 8ad07de374 f25bd2fa6c log há 2 dias atrás
service f25bd2fa6c log há 2 dias atrás
static a24e55bacf 优化代码 há 1 semana atrás
.gitignore 1ae06dd30f first commit há 3 semanas atrás
.gitmodules c96e1dfb47 add rpc_idl há 3 semanas atrás
Makefile 1ae06dd30f first commit há 3 semanas atrás
README.md 1ae06dd30f first commit há 3 semanas atrás
go.mod 1ae06dd30f first commit há 3 semanas atrás
go.sum 1ae06dd30f first commit há 3 semanas atrás
main.go 1ae06dd30f first commit há 3 semanas atrás

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