alpine + env
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
docker-compose.yml
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
||||
@@ -5,6 +5,6 @@ RUN npm ci
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
|
||||
|
||||
@@ -19,22 +19,25 @@ export default defineConfig(({ mode }) => {
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api/': {
|
||||
target: 'https://api.eveal.shendai.rip/',
|
||||
target: `https://${env.API_URL}/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/appraisal/': {
|
||||
target: 'https://appraise.imperium.nexus/',
|
||||
target: `https://${env.EVEPRAISAL_URL}/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/appraisal/, ''),
|
||||
},
|
||||
'/esi/': {
|
||||
target: 'https://esi.evetech.net/latest/',
|
||||
target: `https://${env.ESI_URL}/latest/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/esi/, ''),
|
||||
headers: {
|
||||
'User-Agent': env.ESI_USER_AGENT
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user