/simple-sms

simple dedicated server to send sms via aligo service

Primary LanguageGo

Simple SMS with ALI.Go

알리고 SMS 발송을 처리하는 간단한 웹 서버. 미리 등록해놓은 IP에서만 API 콜을 할 수 있어서 작은 서버용으로 만듦 😇

Go1.18 : Version 1.14 or higher is required

ALIGO : 문자전송 서비스

Fiber : Fiber is an Express inspired web framework built on top of Fasthttp.

Viper : Viper is a complete configuration solution for Go applications including 12-Factor apps.

Set ENV variables

Write .env file in the working directory

  • ALIGO_KEY
  • ALIGO_ID
  • ALIGO_PHONE

Run it as a daemon

Use systemd on Linux

  • vi /etc/systemd/system/sms-server.service
  • systemctl daemon-reload
  • systemctl start sms-server.service
  • (optional) systemctl enable sms-server.service