Code Monkey home page Code Monkey logo

Comments (4)

vicmgs avatar vicmgs commented on June 5, 2024

in the /config/releases.exs file, you would swap out the endpoint config on line 10 for something like the below snippet.

config :console, ConsoleWeb.Endpoint, load_from_system_env: true, url: [scheme: "https", host: "example.com", port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto]], cache_static_manifest: "priv/static/cache_manifest.json", secret_key_base: secret_key_base

from console.

disk91 avatar disk91 commented on June 5, 2024

Thank you, I'm testing it.

from console.

disk91 avatar disk91 commented on June 5, 2024

sounds like the console do not liked it:
Compile time configuration: nil
helium_console | Runtime configuration : [rewrite_on: [:x_forwarded_proto]]
helium_console |
helium_console | :force_ssl is a compile-time configuration, so setting
helium_console | it at runtime has no effect. Therefore you must set it in your
helium_console | config/prod.exs or similar (not in your config/releases.exs)
helium_console | and make sure the value doesn't change.

from console.

mfalkvidd avatar mfalkvidd commented on June 5, 2024

My console uses wss
image

This is line 12 in config/releases.exs: url: [host: "mydomain.com", port: 443]

This is my nginx proxy in front:

        location / {
                proxy_pass http://10.17.10.114:4000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "Upgrade";
                proxy_set_header Host $host;

from console.

Related Issues (20)

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.