fix nitter
This commit is contained in:
parent
60f51c98b5
commit
2f53617470
1 changed files with 6 additions and 12 deletions
|
|
@ -2,12 +2,17 @@
|
||||||
let
|
let
|
||||||
domain = "t.mc-fucker.cool";
|
domain = "t.mc-fucker.cool";
|
||||||
nitter_port = "23145";
|
nitter_port = "23145";
|
||||||
|
redis_port = 56379;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nitter = {
|
services.nitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
cache.listMinutes = 480;
|
redisCreateLocally = false;
|
||||||
|
cache = {
|
||||||
|
listMinutes = 480;
|
||||||
|
#redisPort = redis_port;
|
||||||
|
};
|
||||||
server = {
|
server = {
|
||||||
hostname = domain;
|
hostname = domain;
|
||||||
https = true;
|
https = true;
|
||||||
|
|
@ -24,21 +29,10 @@ in
|
||||||
services.nginx.virtualHosts."${domain}" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
#extraConfig = ''
|
|
||||||
# proxy_set_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
|
||||||
# proxy_set_header X-Content-Type-Options nosniff;
|
|
||||||
# proxy_set_header X-Frame-Options DENY;
|
|
||||||
# proxy_set_header X-XSS-Protection "1; mode=block";
|
|
||||||
#'';
|
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:${nitter_port}";
|
proxyPass = "http://127.0.0.1:${nitter_port}";
|
||||||
};
|
};
|
||||||
|
|
||||||
#"/robots.txt" = {
|
|
||||||
# #return = ''"User-agent: *\nDisallow: /\n"'';
|
|
||||||
# extraConfig = "add_header Content-Type text/plain;";
|
|
||||||
#};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue