https redirect
This commit is contained in:
parent
4f71bf83bc
commit
5cc09ce53c
1 changed files with 8 additions and 1 deletions
|
|
@ -119,6 +119,7 @@
|
||||||
proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo
|
proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"forge.quinefoundation.com-http" = {
|
"forge.quinefoundation.com-http" = {
|
||||||
serverName = "forge.quinefoundation.com";
|
serverName = "forge.quinefoundation.com";
|
||||||
|
|
||||||
|
|
@ -128,7 +129,13 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
|
# TODO: forgejo does not support HTTP+HTTPS. But it would be nice if it did.
|
||||||
|
#proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
|
||||||
|
|
||||||
|
# Instead, temporarily redirect to HTTPS
|
||||||
|
extraConfig = ''
|
||||||
|
return 302 https://$host$request_uri;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue