idk
This commit is contained in:
parent
e3820d79be
commit
dfdc44f2e5
|
@ -8,9 +8,19 @@ with lib;
|
||||||
services.nginx.virtualHosts.${dn} = {
|
services.nginx.virtualHosts.${dn} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations = {
|
||||||
|
"/" = {
|
||||||
proxyPass = "http://localhost:4242";
|
proxyPass = "http://localhost:4242";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
add_header Access-Control-Allow-Origin *
|
||||||
|
add_header Access-Control-Allow-Origin https://api.tfcconnection.org
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"tfcconnection.com".return = "301 http://tfcconnection.org$request_uri";
|
||||||
|
"www.tfcconnection.com".return = "301 http://tfcconnection.org$request_uri";
|
||||||
|
"www.tfcconnection.org".return = "301 http://tfcconnection.org$request_uri";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# systemd.services = {
|
# systemd.services = {
|
||||||
|
|
Loading…
Reference in a new issue