Git Product home page Git Product logo

Comments (12)

aminzabardast avatar aminzabardast commented on July 21, 2024 1

Local network -> dnsmasq
Only machine -> /etc/hosts file

127.0.0.1    example.com

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024 1

Add restart unless stopped to the nginx yaml file

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024 1

Add Gzip Support

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024 1

Apparently, if the docker is used locally, it should listen to example.com but example.com would not be in 127.0.0.1 because that is the docker's localhost. It should be redirecting the request to the machine IP. Something like 172.19.0.1

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024 1

Redo this again before committing it to the guide.

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

Adding Local DNS support for custom domains can be in this task

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

Guide should explain hot to combine dnsmasq and nginx.

192.168.0.2:8080 --(dnsmasq)--> example.com:8080

192.168.0.2:8080 --(dnsmasq + nginx)--> example.com


If 192.168.0.2 is RPi machine and 192.168.0.3 is the Workstation (WS):

  1. Browser asking DNS (on RPi): where is the example.com.
  2. DNS respond: it is on 192.168.0.2.
  3. Browser ask 192.168.0.2 (RPi): Give me example.com.
  4. nginx (on 192.168.0.2) takes the request and follows this logic: the example.com is on 192.168.0.3:8080 (WS) so I will map that to the source of the request.

Expand the post and explain how to setup the nginx as well.

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

Add running code server as a daemon.

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

always redirect HTTP to HTTPS using nginx

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

nginx HTTP to HTTPS should be specific to each domain.

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

Explain hot to make DNS work locally

from dotfiles.

aminzabardast avatar aminzabardast commented on July 21, 2024

Explain that key generation has some pop ups and they can be empty, or filled.

from dotfiles.

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.