forked from Zynh0722/permafrost
nginx: force ssl
This commit is contained in:
parent
de4f48353e
commit
0eb63c5e9b
3 changed files with 3 additions and 5 deletions
|
@ -13,8 +13,7 @@ in
|
|||
permafrost.nginx.enable = lib.mkDefault true;
|
||||
permafrost.nginx.certDomains = lib.mkIf ACMEEnabled [ "git.zynh.me" ];
|
||||
services.nginx.virtualHosts."git.zynh.me" = {
|
||||
# TODO: Force ssl
|
||||
# addSSL = true;
|
||||
forceSSL = lib.mkIf ACMEEnabled true;
|
||||
serverName = "git.zynh.me";
|
||||
useACMEHost = lib.mkIf ACMEEnabled "permafrost";
|
||||
locations."/" = {
|
||||
|
|
|
@ -16,8 +16,7 @@ in
|
|||
{
|
||||
# permafrost.nginx.certDomains = lib.mkIf ACMEEnabled [ "scarlet.zynh.me" ];
|
||||
services.nginx.virtualHosts."scarlet.zynh.me" = {
|
||||
# TODO: Force ssl
|
||||
# addSSL = true;
|
||||
forceSSL = lib.mkIf ACMEEnabled true;
|
||||
serverName = "scarlet.zynh.me";
|
||||
useACMEHost = lib.mkIf ACMEEnabled "permafrost";
|
||||
locations."/.well-known/acme-challenge" = {
|
||||
|
|
|
@ -27,9 +27,9 @@ in
|
|||
services.nginx.virtualHosts."nyazoom.zynh.me" = {
|
||||
# TODO: Force ssl
|
||||
# TODO: Force ssl
|
||||
# addSSL = true;
|
||||
serverName = "nyazoom.zynh.me";
|
||||
useACMEHost = lib.mkIf ACMEEnabled "permafrost";
|
||||
forceSSL = lib.mkIf ACMEEnabled true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3000";
|
||||
extraConfig = /* nginx */ ''
|
||||
|
|
Loading…
Reference in a new issue