Created
November 6, 2017 12:27
-
-
Save mgdelacroix/c905d50160455446c4c61dc1689d35e1 to your computer and use it in GitHub Desktop.
Example VirtualBox VM with nginx and gogs
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
{ | |
gogs = | |
{ config, pkgs, ... }: | |
{ | |
deployment.targetEnv = "virtualbox"; | |
deployment.virtualbox.memorySize = 512; | |
deployment.virtualbox.vcpu = 2; | |
deployment.virtualbox.headless = true; | |
}; | |
} |
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
{ | |
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