fix: Reverse Proxy support (#3173)

This commit is contained in:
Degot 2024-10-19 05:49:34 +03:00 • committed by GitHub
commit a3ba700522
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 33 additions and 32 deletions

View file

@ -19,7 +19,7 @@
<ul>
<li v-for="v in fancyLogs.filter(x => x.level === 'Fatal')">{{v.value}}</li>
</ul>
<a class="btn btn-danger" href="/troubleshooting/#logs">View Logs</a>
<a class="btn btn-danger" href="./troubleshooting/#logs">View Logs</a>
</div>
<!-- Version -->
<div class="card p-2 my-4">
@ -98,7 +98,7 @@
},
async created() {
try {
let config = await fetch("/api/config").then((r) => r.json());
let config = await fetch("./api/config").then((r) => r.json());
this.notifyPreReleases = config.notify_pre_releases;
this.version = new SunshineVersion(null, config.version);
console.log("Version: ", this.version.version)
@ -110,7 +110,7 @@
console.error(e);
}
try {
this.logs = (await fetch("/api/logs").then(r => r.text()))
this.logs = (await fetch("./api/logs").then(r => r.text()))
} catch (e) {
console.error(e);
}