Comments (12)
Local network -> dnsmasq
Only machine -> /etc/hosts file
127.0.0.1 example.com
from dotfiles.
Add restart unless stopped to the nginx yaml file
from dotfiles.
Add Gzip Support
from dotfiles.
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.
Redo this again before committing it to the guide.
from dotfiles.
Adding Local DNS support for custom domains can be in this task
from dotfiles.
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):
- Browser asking DNS (on RPi): where is the
example.com
. - DNS respond: it is on
192.168.0.2
. - Browser ask
192.168.0.2
(RPi): Give meexample.com
. nginx
(on192.168.0.2
) takes the request and follows this logic: theexample.com
is on192.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.
Add running code server as a daemon.
from dotfiles.
always redirect HTTP to HTTPS using nginx
from dotfiles.
nginx
HTTP to HTTPS should be specific to each domain.
from dotfiles.
Explain hot to make DNS work locally
from dotfiles.
Explain that key generation has some pop ups and they can be empty, or filled.
from dotfiles.
Related Issues (20)
- Figure out polybar themes
- Polybar Spotify
- Next Branch / Development Server HOT 2
- Auto Install and Setup ZSH
- Bypassing login page for BSPWM
- Disabling/Enabling GUI
- Workstation / QMEU - KVM - Libvirt Guide HOT 4
- Workstation / Docker Guide
- Workstation / K3B Guide HOT 2
- Workstation / NVidia Dual GPU Guide HOT 3
- Better README HOT 1
- Workstation / Font Packages HOT 1
- Workstation / Resize Screen on Start
- Workstation / Backup Solution / Timeshift HOT 2
- Terminal Emulator on Web HOT 4
- Increasing Swap by Adding a Swap File HOT 2
- Needed Packages
- Preventing Hibernation in Lid Closing for Laptops HOT 1
- Terminal Audio Control
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.