mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17:44 +00:00
fix: fix import graph and errors
This commit is contained in:
parent
f2ab446c48
commit
d8bcbab825
7 changed files with 29 additions and 21 deletions
|
@ -1,14 +1,16 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
{ self, config, lib, pkgs, ... }: let
|
||||
inherit (config.networking) domain;
|
||||
inherit (lib) enabled mkConst;
|
||||
in {
|
||||
options.nginx.sslTemplate = mkConst {
|
||||
imports = [(self + /modules/acme)];
|
||||
|
||||
options.services.nginx.sslTemplate = mkConst {
|
||||
forceSSL = true;
|
||||
quic = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
};
|
||||
|
||||
options.nginx.headers = mkConst ''
|
||||
options.services.nginx.headers = mkConst ''
|
||||
# TODO: Not working for some reason.
|
||||
add_header Access-Control-Allow-Origin $allow_origin;
|
||||
add_header Access-Control-Allow-Methods $allow_methods;
|
||||
|
@ -61,7 +63,7 @@ in {
|
|||
~^https://.+\.${domain}$ "GET, HEAD, OPTIONS";
|
||||
}
|
||||
|
||||
${config.nginx.headers}
|
||||
${config.services.nginx.headers}
|
||||
|
||||
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue