Created
November 26, 2017 02:45
-
-
Save breakds/5ef173a22344eb36ce8a992b82fac557 to your computer and use it in GitHub Desktop.
Nginx configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
{ | |
networking.firewall.allowedTCPPorts = [ 80 443 8885 ]; | |
services.nginx = { | |
enable = true; | |
recommendedProxySettings = true; | |
statusPage = true; | |
virtualHosts = { | |
"files.breakds.org" = { | |
locations."/".proxyPass = "http://localhost:8885/"; | |
}; | |
"files.gilgamesh.local" = { | |
locations."/".proxyPass = "http://localhost:8885/"; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment