fix minio redirect
This commit is contained in:
@@ -79,9 +79,9 @@
|
|||||||
User = "minio";
|
User = "minio";
|
||||||
Group = "minio";
|
Group = "minio";
|
||||||
# This breaks the local browser access
|
# This breaks the local browser access
|
||||||
# Environment = ''
|
Environment = ''
|
||||||
# MINIO_BROWSER_REDIRECT_URL=https://${opts.default-nginx.hostname}/console
|
MINIO_BROWSER_REDIRECT_URL=https://${opts.default-nginx.hostname}/console
|
||||||
# '';
|
'';
|
||||||
EnvironmentFile = "${opts.credentialsFile}";
|
EnvironmentFile = "${opts.credentialsFile}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
@@ -189,6 +189,12 @@ EOF
|
|||||||
# This does not work even with the MINIO_BROWSER_REDIRECT_URL set
|
# This does not work even with the MINIO_BROWSER_REDIRECT_URL set
|
||||||
locations."/console" = {
|
locations."/console" = {
|
||||||
proxyPass = "http://localhost:${toString opts.consolePort}";
|
proxyPass = "http://localhost:${toString opts.consolePort}";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Add directive for s3like queries, which only accept root path allegedly
|
# Add directive for s3like queries, which only accept root path allegedly
|
||||||
|
|||||||
@@ -51,8 +51,10 @@
|
|||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults = {
|
defaults = {
|
||||||
# use staging temporarily for testing
|
# use staging testing
|
||||||
server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
|
# use prod for deploy
|
||||||
|
# server = "https://acme-v02.api.letsencrypt.org/directory";
|
||||||
email = "roydumblauskas@gmail.com";
|
email = "roydumblauskas@gmail.com";
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
credentialFiles = {
|
credentialFiles = {
|
||||||
|
|||||||
Reference in New Issue
Block a user