Closed bosslee closed 7 years ago
You need to set environment variable INTEGRAM_PORT to 80 for http, or 443 to listen on HTTPS (you will need to put integram.crt and integram.key in the directory of main.go)
Hi @Requilence
Thanks but when I set it to PORT 80 I got the following
[GIN-debug] Listening and serving HTTP on :80
[GIN-debug] [ERROR] listen tcp :80: bind: permission denied
On mac os you need application to run with sudo to be able to bind on ports <1000.
As a useful solution to run on local environment I can recommend https://ngrok.com or https://github.com/beameio/beame-insta-ssl. E.g. you will be able to tunnel https://external_address.com to 127.0.0.1:7000
thank you
Hi there
I have managed to get the bot up and running on an EC2 instance.
When I trigger the bot with /start I got redirected to this link
Where
ec2-52-221-237-194.ap-southeast-1.compute.amazonaws.com
is my based url However, the page can't be open.Am I missing something here?
Thank you @Requilence :)