Connecting Heroku App to Atlas MongoDB Cloud service

前端 未结 5 858
孤街浪徒
孤街浪徒 2020-11-29 21:26

To antecipate the question: do I need to get SSL support on Heroku in order to establish a connection between Heroku and Atlas Mong

5条回答
  •  一生所求
    2020-11-29 21:59

    You can find all IP ranges for Heroku with this command:

    HEROKU_REGION=eu; sudo apt -qqy install curl jq 2>/dev/null 1>/dev/null; heroku regions --json 2>/dev/null | jq ".[] | select(.name==\"$HEROKU_REGION\") | .provider.region" | (REGION=$(cat); curl -s https://ip-ranges.amazonaws.com/ip-ranges.json |  jq ".prefixes[] | select(.region==$REGION) | .ip_prefix")
    

提交回复
热议问题