Code Monkey home page Code Monkey logo

puppet-django's People

Contributors

bkg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puppet-django's Issues

Nginx headers for Forwarded-Proto

@bkg

Set X-Forwarded- headers on location that serves Django if ssl=true

nginx::resource::location { "name":
    ...
    proxy_set_header => ['X-Forwarded-Proto $scheme',
                         'X-Forwarded-For $proxy_add_x_forwarded_for',
                         'Host $http_host',]
    ...
}

Django relies on the X-Forwarded-Proto or whatever is set in settings.py

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

See https://docs.djangoproject.com/en/1.7/ref/settings/ for details.

I added all the headers since there might be something weird going on if you set them on the location and the server at the same time, they might be all required.

Thank you very much,
Falk

Expose ssl parameters of nginx module

According to the Nginx puppet module we need to expose to

ssl
ssl_cert
ssl_key

to the django module in order to install ssl for API authentication.

Thx, Falk

Please, resolve issues with postgres user

I am using puppet 3.6 and librarian-puppet 0.4 (which has some name spacing changes). Let me know if it works for you after pulling gif-machines and updating librarian puppet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.