l radio: add radio-news.r alias

This commit is contained in:
lassulus 2022-05-25 14:59:08 +02:00
parent d8aa730baf
commit 1c02415b6e
2 changed files with 11 additions and 0 deletions

View File

@ -129,6 +129,7 @@ in {
"c.r"
"p.r"
"search.r"
"radio-news.r"
];
tinc.port = 655;
tinc = {

View File

@ -84,6 +84,16 @@ in
{ predicate = "-p tcp --dport 7999"; target = "ACCEPT"; }
];
services.nginx.virtualHosts."radio-news.r" = {
locations."/" = {
proxyPass = "http://localhost:7999";
proxyWebsockets = true;
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
'';
};
};
krebs.htgen.news = {
port = 7999;
user = {