Skip to content

Instantly share code, notes, and snippets.

@breakds
Created November 26, 2017 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breakds/5ef173a22344eb36ce8a992b82fac557 to your computer and use it in GitHub Desktop.
Save breakds/5ef173a22344eb36ce8a992b82fac557 to your computer and use it in GitHub Desktop.
Nginx configuration
{ 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