next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| const axios = require('axios'); //npm install axios | |
| const options = { | |
| method: 'POST', | |
| url: 'https://v1.firesms.co/api/v1/send/sms', | |
| headers: { | |
| accept: 'application/json', | |
| 'Content-Type': 'application/json', | |
| Authorization: 'API_KEY' | |
| }, |
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {