Auth

shao 9acc0a0b7f client timeout hace 1 día
api f7630194a9 client timeout hace 1 día
cmd e61b28d64e grpc整理 hace 1 semana
common b87b0fa307 vet view hace 1 día
config b3a428328d DROS hace 1 día
dto 1ae06dd30f first commit hace 1 semana
logger 6f8297260e grpc整理 hace 1 semana
models b87b0fa307 vet view hace 1 día
router ea82f95888 GetView hace 2 días
rpc_idl @ c7adaf6cbe ea82f95888 GetView hace 2 días
service 9acc0a0b7f client timeout hace 1 día
static b3a428328d DROS hace 1 día
.gitignore 1ae06dd30f first commit hace 1 semana
.gitmodules c96e1dfb47 add rpc_idl hace 1 semana
Makefile 1ae06dd30f first commit hace 1 semana
README.md 1ae06dd30f first commit hace 1 semana
go.mod 1ae06dd30f first commit hace 1 semana
go.sum 1ae06dd30f first commit hace 1 semana
main.go 1ae06dd30f first commit hace 1 semana

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