Skip to content

Commit bed847d

Browse files
Simplify NixOS docs (#5120)
1 parent 11abc7c commit bed847d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docs/docs/30-administration/05-installation/30-packages.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,18 @@ in
115115
# This automatically sets up certificates via let's encrypt
116116
security.acme.defaults.email = "[email protected]";
117117
security.acme.acceptTerms = true;
118-
security.acme.certs."${domain}" = { };
119118
120119
# Setting up a nginx proxy that handles tls for us
121-
networking.firewall.allowedTCPPorts = [ 80 443 ];
122120
services.nginx = {
123121
enable = true;
122+
openFirewall = true;
124123
recommendedTlsSettings = true;
125124
recommendedOptimisation = true;
126125
recommendedProxySettings = true;
127126
virtualHosts."${domain}" = {
128127
enableACME = true;
129128
forceSSL = true;
130-
locations."/" = {
131-
proxyPass = "http://localhost:3007";
132-
};
129+
locations."/".proxyPass = "http://localhost:3007";
133130
};
134131
};
135132

docs/versioned_docs/version-3.5/30-administration/05-installation/30-packages.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,18 @@ in
115115
# This automatically sets up certificates via let's encrypt
116116
security.acme.defaults.email = "[email protected]";
117117
security.acme.acceptTerms = true;
118-
security.acme.certs."${domain}" = { };
119118
120119
# Setting up a nginx proxy that handles tls for us
121-
networking.firewall.allowedTCPPorts = [ 80 443 ];
122120
services.nginx = {
123121
enable = true;
122+
openFirewall = true;
124123
recommendedTlsSettings = true;
125124
recommendedOptimisation = true;
126125
recommendedProxySettings = true;
127126
virtualHosts."${domain}" = {
128127
enableACME = true;
129128
forceSSL = true;
130-
locations."/" = {
131-
proxyPass = "http://localhost:3007";
132-
};
129+
locations."/".proxyPass = "http://localhost:3007";
133130
};
134131
};
135132

0 commit comments

Comments
 (0)