• Stars
    star
    1,229
  • Rank 36,622 (Top 0.8 %)
  • Language
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

These confs are pulled into our SWAG image: https://github.com/linuxserver/docker-swag

How to use these Reverse Proxy Configs

This folder contains sample reverse proxy configs for various docker images linuxserver provides and other commonly used applications.

NOTE: We avoid providing samples that publicly expose server management software (ex: syno, qnap, unraid, proxmox, esxi, etc). Pull requests to add samples for this category of applications will not be accepted.

They are grouped in two:

  1. subfolder these will allow accessing services at https://yourdomain.com/servicename
  2. subdomain these will allow accessing services at https://servicename.yourdomain.com

It is recommended that users deploy subdomain reverse proxying and not subfolder.

Whilst subfolder reverse proxying appears easier to implement the inherent nature of this technique requires that each application developer make accommodations to support it. This is not always the case and it is common to see applications with no or partial support resulting in an unreliable experience.

Conversely subdomain reverse proxying does not require special accommodation by application developers and will invariably work (or can be made to work) seamlessly without upstream changes.

To enable the reverse proxy configs:

Configure your default site config

Make sure that your default site config contains the following lines in the appropriate spots as seen in the default version:

  1. For subfolder methods: include /config/nginx/proxy-confs/*.subfolder.conf;
  2. For subdomain methods: include /config/nginx/proxy-confs/*.subdomain.conf;

Ensure you have a custom docker network

These confs assume that the swag container can reach other containers via their dns hostnames (defaults to container name) resolved via docker's internal dns. This is achieved through having the containers attached to the same user defined docker bridge network.

  • If you are using docker-compose and the containers are managed through the same yaml file, docker-compose will automatically create a custom network and attach all containers to it. Nothing extra is required.

  • If you are starting the containers via command line, first create a bridge network with the command docker network create [networkname] Then define that network in the container run/create command via --network [networkname].

  • If you are using a gui manager like portainer, you can create a custom bridge network in the gui, and select it when creating a new container.

  • If you are using unraid, create a custom network in command line via docker network create [networkname], then go to docker service settings (under advanced) and set the option Preserve user defined networks: to Yes. Then in each container setting, including the swag container, in the network type dropdown, select Custom : [networkname]. This is a necessary step as the bridge network that unraid uses by default does not allow container to container communication.

If the reverse proxied containers are not reachable via dns or they are running on a different machine, you will have to modify these confs to fit your needs.

Rename the required proxy configs

  1. Rename the conf files and remove the .sample at the end (ie. sonarr.subfolder.conf)
  2. Restart the swag container

Make any necessary changes detailed in the config

Some applications require you to make changes to the service containers such as adding base urls in their settings. Each conf file lists the required changes on the first line.

If you are reverse proxying linuxserver containers installed on the same host with the recommended options, you shouldn't need to edit these conf files.

To disable the configs:

Simply delete the confs and restart swag.

More Repositories

1

Heimdall

An Application dashboard and launcher
PHP
7,126
star
2

docker-wireguard

Dockerfile
2,471
star
3

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.
Dockerfile
2,461
star
4

docker-code-server

Dockerfile
1,415
star
5

docker-webtop

Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.
Dockerfile
1,275
star
6

docker-plex

Dockerfile
992
star
7

docker-unifi-controller

Dockerfile
844
star
8

docker-mods

Documentation and Examples of base container modifications
Dockerfile
808
star
9

docker-letsencrypt

DEPRECATED: Please use linuxserver/swag instead
Dockerfile
727
star
10

docker-sonarr

Dockerfile
672
star
11

docker-calibre-web

Dockerfile
663
star
12

budge

JavaScript
579
star
13

docker-nextcloud

Dockerfile
571
star
14

docker-jellyfin

Dockerfile
563
star
15

docker-bookstack

A Docker container for the BookStack documentation wiki
Dockerfile
556
star
16

docker-qbittorrent

Dockerfile
554
star
17

docker-radarr

Dockerfile
501
star
18

docker-transmission

Dockerfile
486
star
19

docker-openssh-server

Dockerfile
473
star
20

docker-emulatorjs

Web based retro emulation frontend with rom scanning and automated art ingestion.
Dockerfile
439
star
21

docker-unifi-network-application

Dockerfile
419
star
22

docker-jackett

Dockerfile
346
star
23

emulatorjs

Self hosted web based retro emulation front end with rom and art management.
JavaScript
331
star
24

docker-calibre

Dockerfile
291
star
25

docker-smokeping

Shell
287
star
26

Heimdall-Apps

Apps for Heimdall
PHP
283
star
27

docker-heimdall

Dockerfile
282
star
28

docker-grocy

A container for grocy - the ERP application for your kitchen https://grocy.info
Dockerfile
256
star
29

docker-prowlarr

Docker image for Prowlarr/Prowlarr
Dockerfile
249
star
30

docker-syncthing

Dockerfile
235
star
31

docker-deluge

Dockerfile
223
star
32

docker-netbootxyz

Dockerfile
222
star
33

docker-kasm

Kasm Workspaces platform provides enterprise-class orchestration, data loss prevention, and web streaming technology to enable the delivery of containerized workloads to your browser.
Shell
218
star
34

docker-sabnzbd

Dockerfile
210
star
35

docker-duplicati

Dockerfile
207
star
36

docker-bazarr

Dockerfile
200
star
37

docker-rdesktop

Dockerfile
191
star
38

docker-tautulli

Dockerfile
184
star
39

docker-duckdns

Shell
183
star
40

docker-mariadb

Dockerfile
181
star
41

docker-homeassistant

Dockerfile
170
star
42

docker-lidarr

Dockerfile
169
star
43

docker-healthchecks

Dockerfile
163
star
44

docker-baseimage-kasmvnc

Base Images for remote web based Linux desktops using KasmVNC for many popular distros.
Shell
159
star
45

docker-couchpotato

Dockerfile
153
star
46

davos

Web-based FTP automation for Linux servers.
Java
151
star
47

docker-rutorrent

DEPRECATED
PHP
151
star
48

docker-ombi

Dockerfile
147
star
49

docker-nzbget

Dockerfile
140
star
50

docker-tvheadend

Dockerfile
134
star
51

docker-freshrss

HTML
124
star
52

docker-baseimage-alpine

Dockerfile
124
star
53

docker-docker-compose

Shell
123
star
54

docker-nginx

Dockerfile
122
star
55

docker-kodi-headless

Dockerfile
122
star
56

Clarkson

Web-based fuel logging dashboard
TypeScript
120
star
57

docker-firefox

Dockerfile
113
star
58

fleet

Status and image fleet metadata management application for Docker images
Java
110
star
59

docker-ffmpeg

Dockerfile
109
star
60

docker-ddclient

Dockerfile
106
star
61

docker-piwigo

Dockerfile
104
star
62

docker-resilio-sync

Dockerfile
102
star
63

docker-snipe-it

Alpine/Nginx container for the Asset Management software Snipe-IT
Dockerfile
101
star
64

docker-baseimage-guacgui

Dockerfile
98
star
65

docker-beets

Dockerfile
97
star
66

docker-baseimage-ubuntu

Dockerfile
97
star
67

docker-daapd

Dockerfile
96
star
68

docker-readarr

Container for readarr.com
94
star
69

docker-wireshark

Dockerfile
87
star
70

docker-openvscode-server

Dockerfile
83
star
71

docker-dokuwiki

Dockerfile
82
star
72

docker-ubooquity

Dockerfile
82
star
73

docker-emby

Dockerfile
80
star
74

docker-overseerr

Dockerfile
77
star
75

docker-lazylibrarian

Dockerfile
77
star
76

heimdalljs

JavaScript
77
star
77

docker-baseimage-rdesktop-web

Custom all in one container for running GUI apps from a web browser
Dockerfile
73
star
78

docker-netbox

Python
72
star
79

docker-pyload-ng

Dockerfile
72
star
80

docker-mastodon

Dockerfile
71
star
81

gclient

NodeJS application replacement for the default Guacamole Client
JavaScript
66
star
82

docker-ldap-auth

Python
66
star
83

docker-librespeed

HTML
66
star
84

docker-steamos

Vanilla Arch modified into SteamOS with web based Desktop access, useful for remote play and lower end games
Dockerfile
66
star
85

docker-tt-rss

Dockerfile
65
star
86

docker-libreoffice

Dockerfile
64
star
87

docker-wikijs

Dockerfile
64
star
88

docker-diskover

A Docker container for the Diskover space mapping application
Dockerfile
64
star
89

docker-nzbhydra2

Dockerfile
61
star
90

docker-organizr

DEPRECATED
Dockerfile
61
star
91

docker-budge

Dockerfile
56
star
92

docker-remmina

Dockerfile
56
star
93

docker-projectsend

Dockerfile
55
star
94

docker-scrutiny

Dockerfile
54
star
95

docker-endlessh

Dockerfile
53
star
96

docker-snapdrop

HTML
52
star
97

docker-chromium

Web accessible Chromium inside an Alpine Container
Dockerfile
52
star
98

docker-paperless-ngx

Dockerfile
48
star
99

docker-headphones

Dockerfile
48
star
100

docker-papermerge

Dockerfile
47
star