ssl for the website
This commit is contained in:
parent
f8684b8be9
commit
aaf49311fc
|
@ -7,11 +7,6 @@
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts."${config.fsr.domain}" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
map $remote_addr $remote_addr_anon {
|
map $remote_addr $remote_addr_anon {
|
||||||
~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
|
~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
|
||||||
|
|
|
@ -32,6 +32,8 @@ in
|
||||||
|
|
||||||
services.nginx = rec {
|
services.nginx = rec {
|
||||||
virtualHosts.${www-domain} = {
|
virtualHosts.${www-domain} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
root = "/srv/web/ifsrde";
|
root = "/srv/web/ifsrde";
|
||||||
locations = {
|
locations = {
|
||||||
"= /" = {
|
"= /" = {
|
||||||
|
|
Loading…
Reference in a new issue