Same URL both inside and outside network via NGINX

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/selfhosted

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • Nginx Proxy Manager

    Docker container for managing Nginx proxy hosts with a simple, powerful interface

    The steps involved for getting this setup are: - Register a domain name - Set the domain to resolve to your home IP address - (Technically optional but highly recommended) Set up dyndns to automatically update your domain if your home IP changes. Some routers have this as a built-in feature you can use. If not, you'd need to run an auto-updater yourself. - Configure port forwarding in your router for 80 and 443 to your reverse proxy (nginx) - I recommend using something that automatically sets up TLS through letsencrypt such as SWAG or nginx proxy manager. They're all just wrappers for nginx so if you're familiar with nginx then they should be easy changes. - Configure nginx to listen on 80 (HTTP) and 443 (HTTPS) but redirect requests based on either subdomain or path to the specific IP + Port of your app. - (Optional but recommended) Configure your internal DNS server to resolve your domain to the local IP of your reverse proxy so internal traffic doesn't need to leave your network and come back in from the internet.

  • docker-swag

    Nginx webserver and reverse proxy with php support and a built-in Certbot (Let's Encrypt) client. It also contains fail2ban for intrusion prevention.

    The steps involved for getting this setup are: - Register a domain name - Set the domain to resolve to your home IP address - (Technically optional but highly recommended) Set up dyndns to automatically update your domain if your home IP changes. Some routers have this as a built-in feature you can use. If not, you'd need to run an auto-updater yourself. - Configure port forwarding in your router for 80 and 443 to your reverse proxy (nginx) - I recommend using something that automatically sets up TLS through letsencrypt such as SWAG or nginx proxy manager. They're all just wrappers for nginx so if you're familiar with nginx then they should be easy changes. - Configure nginx to listen on 80 (HTTP) and 443 (HTTPS) but redirect requests based on either subdomain or path to the specific IP + Port of your app. - (Optional but recommended) Configure your internal DNS server to resolve your domain to the local IP of your reverse proxy so internal traffic doesn't need to leave your network and come back in from the internet.

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts