Giter VIP home page Giter VIP logo

Comments (14)

stonith404 avatar stonith404 commented on May 24, 2024

Hey thanks for your enhancement. I don't really a reason for this feature because a reverse proxy would easily do this job. You just could spin up a reverse proxy container. Can I ask why you don't want to use a reverse proxy?

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

stonith404 avatar stonith404 commented on May 24, 2024

Sorry I don't know anything about SSL directly with Node.js, I'm not even sure if this is possible.
Additionally using SSL directly hasn't any advantages, or has it?

But you can easily enable SSL with a reverse proxy: https://domysee.com/blogposts/reverse-proxy-nginx-docker-compose

I personally use Nginx Proxy Manager, this is a reverse proxy with a GUI.

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

stonith404 avatar stonith404 commented on May 24, 2024

There are plenty node.js files. For the frontend they are placed in the /frontend/src folder. The frontend uses nextjs btw.

from pingvin-share.

stevenengland avatar stevenengland commented on May 24, 2024

+1 for https

I would love to be able to spin up this container with TLS support.

from pingvin-share.

stevenengland avatar stevenengland commented on May 24, 2024

Additionally using SSL directly hasn't any advantages, or has it?

There are advantages. Encryption and possibly trust in the internal network. "Zero Trust".

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

stonith404 avatar stonith404 commented on May 24, 2024

I've never set up SSL directly with NextJS. If someone knows how to setup https directly with NextJS, feel free to create a PR :)

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

stonith404 avatar stonith404 commented on May 24, 2024

I think NextJS creates the http server automatically in the background. But there is a way to create a custom web server with NextJS, but never used it before.

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

stonith404 avatar stonith404 commented on May 24, 2024

@woreibi Thanks for your tries :) Sorry but I really don't know what you mean with a config file. There is a nextjs config file, but related to nodejs and nextjs there isn't any other config file.

As a work around, you could add nginx to the docker compose stack. With this solution the data is only not encrypted in the docker network. I understand this is not the solution you want, but it's pretty secure. The only way a "hacker" could read the traffic, is when he has access to the docker container and when he has access to the docker container, he easily could read the database.

from pingvin-share.

woreibi avatar woreibi commented on May 24, 2024

from pingvin-share.

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.