make instructions clearer for new nginx config
This commit is contained in:
parent
666e85adc0
commit
a77d0dfa74
|
@ -39,6 +39,15 @@ class Command(BaseCommand):
|
||||||
alias /srv/salt/scripts/;
|
alias /srv/salt/scripts/;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
after_this = """
|
||||||
|
location /saltscripts/ {
|
||||||
|
internal;
|
||||||
|
add_header "Access-Control-Allow-Origin" "https://rmm.yourwebsite.com";
|
||||||
|
alias /srv/salt/scripts/userdefined/;
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
self.stdout.write(self.style.ERROR("*" * 100))
|
self.stdout.write(self.style.ERROR("*" * 100))
|
||||||
self.stdout.write("\n")
|
self.stdout.write("\n")
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
|
@ -53,6 +62,13 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
self.stdout.write(self.style.SUCCESS(new_conf))
|
self.stdout.write(self.style.SUCCESS(new_conf))
|
||||||
self.stdout.write("\n")
|
self.stdout.write("\n")
|
||||||
|
self.stdout.write(
|
||||||
|
self.style.ERROR(
|
||||||
|
"You can paste the above right after the following block that's already in your nginx config:"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
self.stdout.write(after_this)
|
||||||
|
self.stdout.write("\n")
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
self.style.ERROR(
|
self.style.ERROR(
|
||||||
"Make sure to replace rmm.yourwebsite.com with your domain"
|
"Make sure to replace rmm.yourwebsite.com with your domain"
|
||||||
|
|
Loading…
Reference in New Issue