Auth

shao ea82f95888 GetView 1 tuần trước cách đây
api ea82f95888 GetView 1 tuần trước cách đây
cmd e61b28d64e grpc整理 2 tuần trước cách đây
common a56fc690c4 procedure 1 tuần trước cách đây
config a56fc690c4 procedure 1 tuần trước cách đây
dto 1ae06dd30f first commit 2 tuần trước cách đây
logger 6f8297260e grpc整理 2 tuần trước cách đây
models 6f8297260e grpc整理 2 tuần trước cách đây
router ea82f95888 GetView 1 tuần trước cách đây
rpc_idl @ c7adaf6cbe ea82f95888 GetView 1 tuần trước cách đây
service ea82f95888 GetView 1 tuần trước cách đây
static 1ae06dd30f first commit 2 tuần trước cách đây
.gitignore 1ae06dd30f first commit 2 tuần trước cách đây
.gitmodules c96e1dfb47 add rpc_idl 2 tuần trước cách đây
Makefile 1ae06dd30f first commit 2 tuần trước cách đây
README.md 1ae06dd30f first commit 2 tuần trước cách đây
go.mod 1ae06dd30f first commit 2 tuần trước cách đây
go.sum 1ae06dd30f first commit 2 tuần trước cách đây
main.go 1ae06dd30f first commit 2 tuần trước cách đây

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