/etc/httpd/conf.d/www.julienmousqueton.fr-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost 0.0.0.0:443>`
ServerName www.julienmousqueton.fr
ProxyPreserveHost on
ProxyRequests off
ProxyPass / http://localhost:2368/
ProxyPassReverse / http://127.0.0.1:2368/
RequestHeader set X-Forwarded-Proto "https"
CustomLog /var/log/httpd/www.julienmousqueton.fr-access.log combined
ErrorLog /var/log/httpd/www.julienmousqueton.fr-error.log
SSLCertificateFile /etc/letsencrypt/live/www.julienmousqueton.fr/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.julienmousqueton.fr/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/www.julienmousqueton.fr/chain.pem
</VirtualHost>
</IfModule>
/etc/httpd/conf.d/www.julienmousqueton.fr.conf
<VirtualHost 0.0.0.0:80>
ServerName www.julienmousqueton.fr
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.julienmousqueton.fr
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
/opt/Ghost/config.js
var path = require('path'),
config;
config = {
// ### Production
production: {
url: 'https://www.julienmousqueton.fr',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
server: {
host: '127.0.0.1',
port: '2368'
},
logging: false,
mail: {
transport: 'SMTP',
options: {
service: 'Mailgun',
auth: {
user: 'postmaster@xxxxxxxxxxxxx',
pass: 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
}
}
}
logging: false
}
};
module.exports = config;