You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
{ 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;
|
|
'';
|
|
};
|
|
} |