using ssl

This commit is contained in:
Marvin Steadfast 2018-01-09 09:03:35 +00:00
parent bc70188925
commit 8751516bae
3 changed files with 8 additions and 3 deletions

3
content/extra/.htaccess Normal file
View File

@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

View File

@ -31,6 +31,7 @@ RSS_FEED_SUMMARY_ONLY = False
EXTRA_PATH_METADATA = {
# 'extra/robots.txt': {'path': 'robots.txt'},
'extra/CNAME': {'path': 'CNAME'},
'extra/.htaccess': {'path': '.htaccess'},
}
# static paths will be copied without parsing their contents
@ -38,6 +39,7 @@ STATIC_PATHS = [
'images',
# 'extra/robots.txt',
'extra/CNAME',
'extra/.htaccess',
# 'code',
# 'notebooks'
]

View File

@ -10,7 +10,7 @@ import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://xsteadfastx.org'
SITEURL = 'https://xsteadfastx.org'
RELATIVE_URLS = False
DELETE_OUTPUT_DIRECTORY = True
@ -20,8 +20,8 @@ FEED_DOMAIN = SITEURL
# Following items are often useful when publishing
# PIWIK
PIWIK_URL = 'piwik.luftmentsh.org'
PIWIK_SITE_ID = 5
#PIWIK_URL = 'piwik.luftmentsh.org'
#PIWIK_SITE_ID = 5
# DISQUS
DISQUS_SITENAME = "xsteadfastx"