Mixed content when serving https, statick files still being passed over http

27 views
Skip to first unread message

David Bain

unread,
Mar 24, 2017, 9:35:18 AM3/24/17
to Kotti
When run my site over https via nginx, the static files are still being served via http.
Not sure what the issue is.
I've included my configuration ini file below.

# Documentation for this file is available at: # kotti.readthedocs.org/en/latest/index.html#configuration-and-customization [app:kotti] use = config:inis/base.ini#kotti kotti.site_title = Example kotti.page_title = Welcome to Example# Enable debugging for templates and automated templates reload
pyramid
.reload_templates = true
pyramid
.debug_authorization = true
pyramid
.debug_notfound = true
pyramid
.debug_routematch = true
pyramid
.debug_templates = true
debugtoolbar
.hosts = 0.0.0.0/0
debugtoolbar
.enabled = true

ini_file
= %(here)s/c9.ini
kotti
.secret = qwerty

# sqlalchemy.url: the database that you want to use, defaults to SQLite
# see http://www.sqlalchemy.org/docs/core/engines.html#database-urls
sqlalchemy
.url = postgres://ubuntu:12345@localhost/ubuntu?client_encoding=utf8
client_encoding
= utf8

mail
.default_sender = me@example.com
dpk_support_email
= me@example.com


pyramid
.includes =
 pyramid_tm
 pyramid_debugtoolbar
 pyramid_beaker
 pyramid_mailer
.debug


#kotti.depot.1.name = dbfiles
#kotti.depot.1.backend = kotti.filedepot.DBFileStorage

#kotti.depot.0.name = files
#kotti.depot.0.backend = depot.io.awss3.S3Storage
#kotti.depot.0.access_key_id = AKIAIPMVEXXVQELAS7OQ
#kotti.depot.0.secret_access_key = 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
#kotti.depot.0.bucket = ep-bucket-test

[filter:fanstatic]
use = egg:fanstatic#fanstatic

recompute_hashes
= false
versioning
= true


[pipeline:main]
pipeline
=
 fanstatic
 kotti


[server:main]
use = egg:pyramid#wsgiref
host
= 0.0.0.0
port
= 8080


[alembic]
script_location
= example:alembic

file_template
= %%(year)d%%(month).2d%%(day).2d_%%(rev)s_%%(slug)s

truncate_slug_length
= 60

sqlalchemy
.url = postgres://khkhk:97868686kjkk@localhost/latorm?client_encoding=utf8


[logger_alembic]
level
= DEBUG


handlers
= console
qualname
= kotti





Not sure why it isn't working

David Bain

unread,
May 5, 2017, 6:06:50 AM5/5/17
to Kotti
To answer my own question... again...

I had to add paste_prefix to my main pipeline, see below:

[filter:paste_prefix]
use = egg:PasteDeploy#prefix


[pipeline:main]
pipeline
=
    fanstatic
   
paste_prefix
    kotti
Reply all
Reply to author
Forward
0 new messages