Auth

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

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