Guest User

Untitled

a guest
Sep 11th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. 'ssl': true
  2. 'port': 3000,
  3. 'admin path': 'admin',
  4. 'ssl cert': '/etc/letsencrypt/live/mydomain.com/fullchain.pem',
  5. 'ssl key': '/etc/letsencrypt/live/mydomain.com/privkey.pem',
  6. 'letsencrypt': (process.env.NODE_ENV === 'production') && {
  7. email: 'user@gmail.com',
  8. domains: ['www.mydomain.com', 'mydomain.com'],
  9. register: true,
  10. tos: true,
  11. },
  12.  
  13. app |
  14. app | ------------------------------------------------
  15. app | KeystoneJS v4.0.0 started:
  16. app | mydomain is ready on http://0.0.0.0:3000
  17. app | SSL Server is ready on https://0.0.0.0:3001
  18. app | ------------------------------------------------
  19. app |
  20.  
  21. <VirtualHost *:80>
  22. # Admin email, Server Name (domain name), and any aliases
  23. ServerAdmin info@mydomain.com
  24. ServerName mydomain.com
  25. ServerAlias www.mydomain.com
  26.  
  27. # Index file and Document Root (where the public files are located)
  28. DirectoryIndex index.html
  29. DocumentRoot /var/www/html/mydomain.com/
  30. # Log file locations
  31. LogLevel warn
  32. ErrorLog /var/www/html/mydomain.com/log/error.log
  33. CustomLog /var/www/html/mydomain.com/log/access.log combined
  34.  
  35. ProxyPass / http://localhost:3000/
  36. ProxyPassReverse / http://localhost:3000/
  37. ProxyPreserveHost On
  38.  
  39. RewriteEngine on
  40. RewriteCond %{SERVER_NAME} =www.mydomain.com [OR]
  41. RewriteCond %{SERVER_NAME} =mydomain.com
  42. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  43. </VirtualHost>
  44.  
  45. <IfModule mod_ssl.c>
  46. <VirtualHost *:443>
  47. # Admin email, Server Name (domain name), and any aliases
  48. ServerAdmin info@mydomain.com
  49. ServerName mydomain.com
  50. ServerAlias www.mydomain.com
  51.  
  52. # Index file and Document Root (where the public files are located)
  53. DirectoryIndex index.html
  54. DocumentRoot /var/www/html/mydomain.com/
  55. # Log file locations
  56. LogLevel warn
  57. ErrorLog /var/www/html/mydomain.com/log/error.log
  58. CustomLog /var/www/html/mydomain.com/log/access.log combined
  59.  
  60. ProxyPass / http://localhost:3000/
  61. ProxyPassReverse / http://localhost:3000/
  62. ProxyPreserveHost On
  63.  
  64. Include /etc/letsencrypt/options-ssl-apache.conf
  65. Include /etc/letsencrypt/options-ssl-apache.conf
  66. SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
  67. SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
  68. </VirtualHost>
  69. </IfModule>
Add Comment
Please, Sign In to add comment