This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Should go into `/etc/nginx/sites-available` as file named `default` | |
# Redirect HTTP to HTTPS | |
server { | |
listen 80; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pdf = require('html-pdf'); | |
var fs = require('fs'); | |
var streamingS3 = require('streaming-s3') ; | |
var html = '<h1>Test</h1><p>Hello World</p>'; | |
pdf.create(html).toStream(function(err, stream) { | |
var uploader = new streamingS3(stream { | |
accessKeyId: 'YOUR_ACCESS_KEY_ID', |