Auth

shao e346cc82b3 study 16 stundas atpakaļ
api e346cc82b3 study 16 stundas atpakaļ
cmd e346cc82b3 study 16 stundas atpakaļ
common b87b0fa307 vet view 3 dienas atpakaļ
config b3a428328d DROS 4 dienas atpakaļ
dto 1ae06dd30f first commit 2 nedēļas atpakaļ
logger 6f8297260e grpc整理 1 nedēļu atpakaļ
models b87b0fa307 vet view 3 dienas atpakaļ
router e346cc82b3 study 16 stundas atpakaļ
rpc_idl @ b247d632b2 e346cc82b3 study 16 stundas atpakaļ
service e346cc82b3 study 16 stundas atpakaļ
static b3a428328d DROS 4 dienas atpakaļ
.gitignore 1ae06dd30f first commit 2 nedēļas atpakaļ
.gitmodules c96e1dfb47 add rpc_idl 2 nedēļas atpakaļ
Makefile 1ae06dd30f first commit 2 nedēļas atpakaļ
README.md 1ae06dd30f first commit 2 nedēļas atpakaļ
go.mod 1ae06dd30f first commit 2 nedēļas atpakaļ
go.sum 1ae06dd30f first commit 2 nedēļas atpakaļ
main.go 1ae06dd30f first commit 2 nedēļas atpakaļ

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