fix certs
This commit is contained in:
parent
16910ee379
commit
f7ab003036
2 changed files with 7 additions and 3 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
networking.usePredictableInterfaceNames = true;
|
networking.usePredictableInterfaceNames = true;
|
||||||
|
nix.settings.trusted-users = [ "stuce" ];
|
||||||
users.users.stuce = {
|
users.users.stuce = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/stuce";
|
home = "/home/stuce";
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,12 @@ in {
|
||||||
};
|
};
|
||||||
virtualHosts."eink.${host}" = {
|
virtualHosts."eink.${host}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
sslCertificateKey = "/etc/nginx/certs/ca.key";
|
# sslCertificateKey = "/etc/nginx/certs/ca.key";
|
||||||
sslCertificate = "/etc/nginx/certs/ca.crt";
|
# sslCertificate = "/etc/nginx/certs/ca.crt";
|
||||||
extraConfig = "ssl_client_certificate /etc/nginx/certs/client.crt;";
|
extraConfig = '''
|
||||||
|
ssl_client_certificate /etc/nginx/certs/client.crt;
|
||||||
|
ssl_verify_client on;
|
||||||
|
''';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
# TODO fastcgi to the script
|
# TODO fastcgi to the script
|
||||||
extraConfig = "return 200 'handshake worked !!!';";
|
extraConfig = "return 200 'handshake worked !!!';";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue