Skip to content

Instantly share code, notes, and snippets.

View majerus1223's full-sized avatar

majerus1223

  • STL
View GitHub Profile
@majerus1223
majerus1223 / influxdb.md
Created January 18, 2018 16:06 — forked from dariubs/influxdb.md
influxdb cheatsheet
@majerus1223
majerus1223 / nginxproxy.md
Created February 28, 2018 18:29 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

traefik_proxy
- dversion: "2" # should probably be 3
volumes:
gitea:
services:
server:
image: gitea/gitea:latest
restart: always
#creates the Traefik container, make sure this is in a folder named Traefik. Also be sure to add the toml file in the same directory.
version: '3'
services:
reverse-proxy:
image: traefik # The official Traefik docker image
#build: ./traefik-library-image/alpine # This is for some lets encrypt dns cert shenanigans, you can probably just pull the image.
command:
- "--debug" # I dont think i need that, might want to remove it
ports: