mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(nginx): proxied listen
This commit is contained in:
parent
f2c7178486
commit
f9b02a03a4
18 changed files with 185 additions and 90 deletions
|
|
@ -22,8 +22,8 @@ in {
|
|||
requireAuth = false;
|
||||
};
|
||||
proxy = {
|
||||
url = mkIf barcodebuddy.enable (mkDefault
|
||||
"http://localhost:${toString nginx.defaultHTTPListenPort}"
|
||||
upstream = mkIf barcodebuddy.enable (mkDefault
|
||||
"nginx'proxied"
|
||||
);
|
||||
host = mkDefault serverName;
|
||||
};
|
||||
|
|
@ -42,7 +42,7 @@ in {
|
|||
ssl.cert.copyFromVhost = "barcodebuddy";
|
||||
local.enable = mkDefault true;
|
||||
proxy = {
|
||||
url = mkDefault nginx.virtualHosts.barcodebuddy.proxy.url;
|
||||
upstream = mkDefault nginx.virtualHosts.barcodebuddy.proxy.upstream;
|
||||
host = mkDefault nginx.virtualHosts.barcodebuddy.proxy.host;
|
||||
};
|
||||
locations."/" = { config, ... }: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue