Auth

shao c96e1dfb47 add rpc_idl há 1 semana atrás
api 1ae06dd30f first commit há 1 semana atrás
cmd 1ae06dd30f first commit há 1 semana atrás
common 1ae06dd30f first commit há 1 semana atrás
config 1ae06dd30f first commit há 1 semana atrás
dto 1ae06dd30f first commit há 1 semana atrás
logger 1ae06dd30f first commit há 1 semana atrás
models 1ae06dd30f first commit há 1 semana atrás
router 1ae06dd30f first commit há 1 semana atrás
rpc_idl @ 798567b8fa c96e1dfb47 add rpc_idl há 1 semana atrás
service 1ae06dd30f first commit há 1 semana atrás
static 1ae06dd30f first commit há 1 semana atrás
.gitignore 1ae06dd30f first commit há 1 semana atrás
.gitmodules c96e1dfb47 add rpc_idl há 1 semana atrás
Makefile 1ae06dd30f first commit há 1 semana atrás
README.md 1ae06dd30f first commit há 1 semana atrás
go.mod 1ae06dd30f first commit há 1 semana atrás
go.sum 1ae06dd30f first commit há 1 semana atrás
main.go 1ae06dd30f first commit há 1 semana 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