Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
| // Copied from: https://ethfiddle.com/09YbyJRfiI | |
| // CryptoKitties Source code | |
| // Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code | |
| pragma solidity ^0.4.11; | |
| /** | |
| * @title Ownable | |
| * @dev The Ownable contract has an owner address, and provides basic authorization control |
| ### KERNEL TUNING ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 |
| export class BigNumber { | |
| static INTERNAL_RADIX = 16777216; | |
| static DEFAULT_REAL_PRECISION = 4; | |
| constructor(value, dotPos, sign) { | |
| if (value === undefined) { | |
| value = 0; | |
| } | |
| if (Array.isArray(value)) { |
| var request = require('request'); | |
| var fs = require('fs'); | |
| var sox = require('sox'); | |
| var spawn = require('child_process').spawn; | |
| var WATSON_USER = ''; | |
| var WATSON_PASS = ''; | |
| var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize'; | |
| # read more at https://terrty.net/2014/ssl-tls-in-nginx/ | |
| # latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf | |
| # security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net | |
| # your nginx version might not have all directives included, test this configuration before using in production against your nginx: | |
| # $ nginx -c /etc/nginx/nginx.conf -t | |
| server { | |
| # public key, contains your public key and class 1 certificate, to create: | |
| # (example for startssl) | |
| # $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null |
| 1) In your terminal, open the file using vim: | |
| vim file_name | |
| 2) Remove all BOM characters: | |
| :set nobomb | |
| 3) Save the file: | |
| :wq |
| ############################################################################### | |
| # The MIT License | |
| # | |
| # Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |