Skip to content

Commit

Permalink
feat: add something
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 9, 2024
1 parent 209dd4b commit 7d8fed6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
type="font/woff2"
crossorigin
/>

<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
<meta property="og:site_name" content="<%= title %>" />
<meta property="og:locale" content="zh-CN" />
<meta name="theme-color" content="#d3e3fd" />
Expand Down
2 changes: 1 addition & 1 deletion src/filehandle/WebdavFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class WebdavFile {
this.name = webdav.name;

this.webdav = createClient(webdav.url, {
authType: AuthType.Digest,
authType: AuthType.Auto,
username: webdav.username,
password: webdav.password
});
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/api/, 'notes')
},
'/apache2': {
target: 'http://8.222.131.201:8364',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/apache2/, 'notes')
}
}
// https: {},
Expand Down

0 comments on commit 7d8fed6

Please sign in to comment.