chore: update aio Caddyfile

This commit is contained in:
jamesgeorge007
2023-10-12 13:44:04 +05:30
parent 04092d8597
commit 2f1fca2917
2 changed files with 9 additions and 6 deletions

View File

@@ -1,11 +1,13 @@
:3000 { :3000 {
try_files {path} /
root * /site/selfhost-web root * /site/selfhost-web
file_server file_server
}
:3100 { handle_path /admin* {
try_files {path} / root * /site/sh-admin
root * /site/sh-admin file_server
file_server }
handle_path /backend* {
reverse_proxy localhost:3170
}
} }

View File

@@ -15,6 +15,7 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
export default defineConfig({ export default defineConfig({
envPrefix: process.env.HOPP_ALLOW_RUNTIME_ENV ? 'VITE_BUILDTIME_' : 'VITE_', envPrefix: process.env.HOPP_ALLOW_RUNTIME_ENV ? 'VITE_BUILDTIME_' : 'VITE_',
envDir: path.resolve(__dirname, '../..'), envDir: path.resolve(__dirname, '../..'),
base: '/admin/',
server: { server: {
port: 3100, port: 3100,
}, },