mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 21:05:09 +08:00
发布应用 Iframely 应用
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
7525f0359a
commit
7b8c7e1b0a
@ -4,13 +4,10 @@ import {dirname} from 'path';
|
|||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = dirname(__filename);
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
const proxyUrlBase = process.env.PROXY_URL || '';
|
|
||||||
const proxyUrl = proxyUrlBase ? `${proxyUrlBase}?url={url}` : '';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
DEBUG: false,
|
DEBUG: false,
|
||||||
RICH_LOG_ENABLED: false,
|
RICH_LOG_ENABLED: false,
|
||||||
baseAppUrl: "http://localhost:8061",
|
baseAppUrl: process.env.BASE_APP_URL || "http://localhost:8061",
|
||||||
relativeStaticUrl: "/r",
|
relativeStaticUrl: "/r",
|
||||||
SKIP_IFRAMELY_RENDERS: true,
|
SKIP_IFRAMELY_RENDERS: true,
|
||||||
GROUP_LINKS: true,
|
GROUP_LINKS: true,
|
||||||
@ -93,7 +90,7 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
ENABLED_PROXY: process.env.ENABLED_PROXY === 'true',
|
ENABLED_PROXY: process.env.ENABLED_PROXY === 'true',
|
||||||
PROXY_URL: proxyUrl,
|
PROXY_URL: process.env.PROXY_URL,
|
||||||
PROXY: [{
|
PROXY: [{
|
||||||
re: [
|
re: [
|
||||||
/^https?:\/\/www\.google\.com/,
|
/^https?:\/\/www\.google\.com/,
|
||||||
@ -117,7 +114,7 @@ export default {
|
|||||||
/^https?:\/\/www\.linkedin\.com/
|
/^https?:\/\/www\.linkedin\.com/
|
||||||
],
|
],
|
||||||
proxy: process.env.ENABLED_PROXY === 'true',
|
proxy: process.env.ENABLED_PROXY === 'true',
|
||||||
proxy_url: proxyUrl,
|
proxy_url: process.env.PROXY_URL,
|
||||||
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
|
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
|
||||||
headers: {},
|
headers: {},
|
||||||
cache_ttl: 3600
|
cache_ttl: 3600
|
||||||
|
@ -23,6 +23,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=8061
|
- PORT=8061
|
||||||
- HOST='0.0.0.0'
|
- HOST=0.0.0.0
|
||||||
- HTTP_PROXY=${PROXY_URL:-}
|
- HTTP_PROXY=${PROXY_URL:-}
|
||||||
- HTTPS_PROXY=${PROXY_URL:-}
|
- HTTPS_PROXY=${PROXY_URL:-}
|
||||||
|
Loading…
Reference in New Issue
Block a user