Skip to content

Instantly share code, notes, and snippets.

@mgdelacroix
Created November 6, 2017 12:27
Show Gist options
  • Save mgdelacroix/c905d50160455446c4c61dc1689d35e1 to your computer and use it in GitHub Desktop.
Save mgdelacroix/c905d50160455446c4c61dc1689d35e1 to your computer and use it in GitHub Desktop.
Example VirtualBox VM with nginx and gogs
{
gogs =
{ config, pkgs, ... }:
{
deployment.targetEnv = "virtualbox";
deployment.virtualbox.memorySize = 512;
deployment.virtualbox.vcpu = 2;
deployment.virtualbox.headless = true;
};
}
{
gogs =
{ config, pkgs, ... }:
{
services.openssh.enable = true;
services.gogs.enable = true;
services.nginx.enable = true;
services.nginx.virtualHosts."localhost".locations."/".proxyPass = "http://127.0.0.1:3000/";
networking.firewall.allowedTCPPorts = [ 22 80 ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment