l radio: add radio-news.r alias
This commit is contained in:
parent
d8aa730baf
commit
1c02415b6e
@ -129,6 +129,7 @@ in {
|
||||
"c.r"
|
||||
"p.r"
|
||||
"search.r"
|
||||
"radio-news.r"
|
||||
];
|
||||
tinc.port = 655;
|
||||
tinc = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user