Skip to content

Commit 97c6bbe

Browse files
committed
change base path to /
1 parent c68a7d9 commit 97c6bbe

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

default.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ server {
1212
try_files $uri $uri/ /index.html;
1313
}
1414

15+
location ^~ /browser/ {
16+
proxy_set_header Host $host;
17+
proxy_set_header X-Real-IP $remote_addr;
18+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19+
proxy_set_header X-Forwarded-Proto $scheme;
20+
21+
proxy_pass http://127.0.0.1:80/;
22+
proxy_redirect off;
23+
}
24+
25+
1526
#error_page 404 /404.html;
1627

1728
# redirect server error pages to the static page /50x.html

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iyp-browser",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/plugins/GlobalVariables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const basePath = '/browser' // default value: '/'
1+
const basePath = '/' // default value: '/'
22

33
const GlobalVariables = {
44
install: (app) => {

0 commit comments

Comments
 (0)