Permalink
Browse files

updated server stuff

  • Loading branch information...
Bad boy writing code directly on the server
Bad boy writing code directly on the server committed Nov 26, 2017
1 parent 778ae5b commit 85ab746eb23d8e635703f950826aaba39d4d99d4
Showing with 13 additions and 5 deletions.
  1. +1 −1 lib/badges.js
  2. +1 −1 lib/update.js
  3. +11 −3 server/nginx-packagequality.conf
View
@@ -8,7 +8,7 @@ var fs = require('fs');
var basicRequest = require('basic-request');
var Log = require('log');
var config = require('../config.js');
const qs = require('querystring');
var qs = require('querystring');
// constants
var MAX_PACKAGE_NAME = 19;
View
@@ -72,7 +72,7 @@ function getEstimator(entry)
{
if (error)
{
log.error('error estimating: ' + entry.name);
log.error('error estimating: ' + entry.name + ':' + JSON.stringify(error));
return callback(null);
}
estimation.lastUpdated = moment().format();
@@ -1,9 +1,17 @@
server {
listen 80;
server_name packagequality.com;
access_log /var/log/nginx/packagequality.com-access.log;
error_log /var/log/nginx/packagequality.com-error.log;
server_name packagequality.com *.packagequality.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
proxy_pass http://127.0.0.1:8080;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/packagequality.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/packagequality.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
}

0 comments on commit 85ab746

Please sign in to comment.