make instructions clearer for new nginx config

This commit is contained in:
wh1te909 2020-08-19 08:44:26 +00:00
parent 666e85adc0
commit a77d0dfa74
1 changed files with 16 additions and 0 deletions

View File

@ -39,6 +39,15 @@ class Command(BaseCommand):
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("\n")
self.stdout.write(
@ -53,6 +62,13 @@ class Command(BaseCommand):
)
self.stdout.write(self.style.SUCCESS(new_conf))
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.style.ERROR(
"Make sure to replace rmm.yourwebsite.com with your domain"