TEMP: adjustments for it to work as a paperless testing vm
This commit is contained in:
parent
8e57526316
commit
cac7a846cc
2 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# vim: tabstop=2 shiftwidth=2 expandtab
|
# vim: tabstop=2 shiftwidth=2 expandtab
|
||||||
let
|
let
|
||||||
base-domain = "005540.xyz";
|
base-domain = "paperless-testing.hummingbird-stork.ts.net";
|
||||||
in
|
in
|
||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -36,7 +36,7 @@ in
|
||||||
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.tmp.cleanOnBoot = true;
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
networking.hostName = "quasar";
|
networking.hostName = "paperless-testing";
|
||||||
users.users.root.initialPassword = "asunarovow";
|
users.users.root.initialPassword = "asunarovow";
|
||||||
networking.domain = "";
|
networking.domain = "";
|
||||||
nix.allowedUsers = [ "@wheel" "root" ];
|
nix.allowedUsers = [ "@wheel" "root" ];
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,14 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
serverNamesHashBucketSize = 128;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${base-domain}" = {
|
"${base-domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:28981";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"sourcehut.${base-domain}" = {
|
"sourcehut.${base-domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue