Auth

shao 619ff05ece patient vor 1 Tag
api 115b84f525 apr vor 2 Tagen
cmd a24e55bacf 优化代码 vor 3 Tagen
common a24e55bacf 优化代码 vor 3 Tagen
config b3a428328d DROS vor 1 Woche
dto 1ae06dd30f first commit vor 2 Wochen
logger 6f8297260e grpc整理 vor 2 Wochen
models b87b0fa307 vet view vor 1 Woche
router 115b84f525 apr vor 2 Tagen
rpc_idl @ 69c0d69921 619ff05ece patient vor 1 Tag
service 115b84f525 apr vor 2 Tagen
static a24e55bacf 优化代码 vor 3 Tagen
.gitignore 1ae06dd30f first commit vor 2 Wochen
.gitmodules c96e1dfb47 add rpc_idl vor 2 Wochen
Makefile 1ae06dd30f first commit vor 2 Wochen
README.md 1ae06dd30f first commit vor 2 Wochen
go.mod 1ae06dd30f first commit vor 2 Wochen
go.sum 1ae06dd30f first commit vor 2 Wochen
main.go 1ae06dd30f first commit vor 2 Wochen

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