Skip to content

Commit b60fa14

Browse files
authored
Fix caddy (#19)
1 parent 614d2c0 commit b60fa14

11 files changed

Lines changed: 335 additions & 174 deletions

File tree

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "avoid",
4+
"insertPragma": false,
5+
"printWidth": 80,
6+
"proseWrap": "preserve",
7+
"singleQuote": true,
8+
"trailingComma": "none",
9+
"useTabs": false,
10+
"bracketSameLine": false,
11+
"bracketSpacing": false
12+
}

Caddyfile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
{
2-
debug
2+
debug
3+
email stan.v.vlad@gmail.com
4+
}
5+
6+
http://localhost:9090 {
7+
@saas {
8+
path /api*
9+
}
10+
11+
handle @saas {
12+
uri strip_prefix /api
13+
reverse_proxy https://api.lnbits.com {
14+
header_up Host api.lnbits.com
15+
}
16+
}
17+
18+
handle /* {
19+
reverse_proxy localhost:5005
20+
21+
}
322
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"productName": "My Bits",
66
"private": true,
77
"scripts": {
8-
"start": "quasar dev",
8+
"comment1": "//// if `npm run start` does not work then run from the command line",
9+
"comment2": "//// first build with `npm run build`",
10+
"start": "quasar serve dist/spa -p 8080",
11+
"dev": "quasar dev",
912
"build": "quasar build",
1013
"test": "echo \"No test specified\" && exit 0"
1114
},

public/images/slide_1.jpg

71.7 KB
Loading

public/images/slide_2.jpg

61.9 KB
Loading

public/images/slide_3.jpg

104 KB
Loading

public/images/slide_4.jpg

80.8 KB
Loading

public/images/slide_5.jpg

130 KB
Loading

public/images/slide_6.jpg

80.1 KB
Loading

src/boot/saas.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { secondsToDhm } from "src/boot/utils";
44
var saas = {
55
slideimg: "assets/images/hero/bitcoin-accounts.png",
66
url: "https://api.lnbits.com",
7+
// for local development togegther with Caddy
8+
// url: "/api",
79
serverTime: null,
810

911
username: localStorage.getItem("username"),

0 commit comments

Comments
 (0)