Auth

shao e61b28d64e grpc整理 před 2 týdny
api e61b28d64e grpc整理 před 2 týdny
cmd e61b28d64e grpc整理 před 2 týdny
common e61b28d64e grpc整理 před 2 týdny
config e61b28d64e grpc整理 před 2 týdny
dto 1ae06dd30f first commit před 3 týdny
logger 6f8297260e grpc整理 před 2 týdny
models 6f8297260e grpc整理 před 2 týdny
router e61b28d64e grpc整理 před 2 týdny
rpc_idl @ fd1299aaac e61b28d64e grpc整理 před 2 týdny
service e61b28d64e grpc整理 před 2 týdny
static 1ae06dd30f first commit před 3 týdny
.gitignore 1ae06dd30f first commit před 3 týdny
.gitmodules c96e1dfb47 add rpc_idl před 3 týdny
Makefile 1ae06dd30f first commit před 3 týdny
README.md 1ae06dd30f first commit před 3 týdny
go.mod 1ae06dd30f first commit před 3 týdny
go.sum 1ae06dd30f first commit před 3 týdny
main.go 1ae06dd30f first commit před 3 týdny

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