parent
c393cbb98f
commit
65ae45eaaf
@ -0,0 +1,11 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.images.enable = true;
|
||||
services.nginx.virtualHosts."jichan.org".locations."/api/images" = {
|
||||
proxyPass = "http://localhost:${builtins.toString config.services.images.port}";
|
||||
extraConfig = ''
|
||||
rewrite ^/api/images/(.*) /$1 break;
|
||||
'';
|
||||
};
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.tatoeba.enable = true;
|
||||
services.nginx.virtualHosts."jichan.org".locations."/api/tatoeba" = {
|
||||
proxyPass = "http://localhost:${builtins.toString config.services.tatoeba.port}";
|
||||
extraConfig = ''
|
||||
rewrite ^/api/tatoeba/(.*) /$1 break;
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in new issue