Skip to content

Script to install a go api on a debian10 with nginx proxy, firewall, git, golang, mariadb, etc

Notifications You must be signed in to change notification settings

MystixCode/install_go_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 

Repository files navigation

install_go_api

Script to install following on a debian10 server:

  • sudo
  • nginx + certbot
  • firewall
  • fail2ban
  • git
  • golang
  • postgresql
  • mariadb
  • go api (go-rest-api/nyx)

still unstable dev version!

HowTo

  • create a debian10 system with ssh and standard systemtools

  • get a domain name and create dns record to your WAN IP

    • [empty] -> WAN IP
    • www -> WAN IP
    • api -> WAN IP
  • on your router: create port forwarding for http and https to your debian10 system

  • copy this bash script to your debian10 system and execute it as normal user

  • you will have to fully disconnect,reconnect and restart the script after sudo installation and after golang installation. You will be warned with orange text warning

TODO

  • install mutiple go api
  • GOPATH in .profile doesnt work anymore
  • testing, fixing, errorhandling
  • make it not necessary to disconnect and restart script after sudo and golang installation maybe with source command

About

Script to install a go api on a debian10 with nginx proxy, firewall, git, golang, mariadb, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages