Skip to content

Commit bf8e7c0

Browse files
authored
Merge branch 'lowcoder-org:main' into patch-2
2 parents ec53bef + 7de19c2 commit bf8e7c0

File tree

13 files changed

+138
-30
lines changed

13 files changed

+138
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
44
<div align="center">
55
<h1 style="border-bottom: none; margin-bottom: 0">Lowcoder</h1>
6-
<h3 style="margin-top: 0">The Open Source Retool Alternative</h3>
6+
<h3 style="margin-top: 0">The Open Source Retool, Tooljet and Appsmith Alternative</h3>
77
<p>
8-
Build internal tools fast, with no limitations
8+
Build internal and customer facing Apps fast, with no limitations
99
</p>
1010
</div>
1111

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ export const en = {
19321932
jsLibraryInstallSuccess: "JavaScript library installed successfully",
19331933
jsLibraryInstallFailed: "JavaScript library installation failed",
19341934
jsLibraryInstallFailedCloud:
1935-
"Perhaps the library is not available in the sandbox, [Documentation](https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
1935+
"Perhaps the library is not available in the sandbox, [Documentation](https://docs.lowcoder.cloud/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
19361936
jsLibraryInstallFailedHost: "{message}",
19371937
add: "Add New",
19381938
jsHelpText: "Add a global method or variable to the current application.",
@@ -2083,7 +2083,7 @@ export const en = {
20832083
showBorder: "Show border",
20842084
},
20852085
docUrls: {
2086-
docHome: "https://docs.lowcoder.dev/",
2086+
docHome: "https://docs.lowcoder.cloud/",
20872087
components: "https://cloud.lowcoder.dev/components?n={compType}",
20882088
module: "",
20892089
optionList: "",
@@ -2092,12 +2092,12 @@ export const en = {
20922092
aboutUs: "",
20932093
changeLog: "",
20942094
introVideo: "",
2095-
devNpmPlugin: "https://docs.lowcoder.dev/build-plugins/develop-your-first-plugin",
2095+
devNpmPlugin: "https://docs.lowcoder.cloud/lowcoder-extension/develop-data-source-plugins",
20962096
devNpmPluginText: "How to develop npm plugin",
2097-
useHost: "https://docs.lowcoder.dev/self-hosting/access-local-database-or-api",
2097+
useHost: "https://docs.lowcoder.cloud/setup-and-run/self-hosting/access-local-database-or-api",
20982098
eventHandlerSlowdown:
2099-
"https://docs.lowcoder.dev/build-apps/event-handlers#debounce-and-throttle",
2100-
thirdLib: "https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries",
2099+
"https://docs.lowcoder.cloud/build-applications/app-interaction/event-handlers",
2100+
thirdLib: "https://docs.lowcoder.cloud/lowcoder-extension/use-third-party-libraries-in-apps",
21012101
thirdLibUrlText: "Use third-party libraries",
21022102
},
21032103
datasourceTutorial: {
@@ -2111,8 +2111,8 @@ export const en = {
21112111
},
21122112
queryTutorial: {
21132113
js: "",
2114-
transformer: "https://docs.lowcoder.dev/build-apps/write-javascript/transformers",
2115-
tempState: "https://docs.lowcoder.dev/build-apps/write-javascript/temporary-state",
2114+
transformer: "https://docs.lowcoder.cloud/business-logic-in-apps/write-javascript/transformers",
2115+
tempState: "https://docs.lowcoder.cloud/business-logic-in-apps/write-javascript/temporary-state",
21162116
},
21172117
customComponent: {
21182118
entryUrl: "https://sdk.lowcoder.cloud/custom_component.html",
@@ -2121,8 +2121,8 @@ export const en = {
21212121
cloneUrl: "/apps/template-import/",
21222122
},
21232123
lowcoderUrl: {
2124-
createIssue: "https://github.com/lowcoder-dev/lowcoder/issues",
2125-
discord: "https://discord.com/invite/z5W2YHXdtt",
2124+
createIssue: "https://github.com/lowcoder-org/lowcoder/issues",
2125+
discord: "https://discord.com/invite/qMG9uTmAx2",
21262126
},
21272127
componentDoc: {
21282128
markdownDemoText:

client/packages/lowcoder/src/i18n/locales/zh.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ export const zh = {
19061906
jsLibraryDownloadError: "JavaScript库下载错误",
19071907
jsLibraryInstallSuccess: "JavaScript库安装成功",
19081908
jsLibraryInstallFailed: "JavaScript库安装失败",
1909-
jsLibraryInstallFailedCloud: "可能该库在沙盒中不可用,[文档](https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
1909+
jsLibraryInstallFailedCloud: "可能该库在沙盒中不可用,[文档](https://docs.lowcoder.cloud/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
19101910
jsLibraryInstallFailedHost: "{message}",
19111911
add: "新增",
19121912
jsHelpText: "向当前应用程序添加全局方法或变量.",
@@ -2053,7 +2053,7 @@ export const zh = {
20532053
showBorder: "显示边框"
20542054
},
20552055
docUrls: {
2056-
docHome: "https://docs.lowcoder.dev/",
2056+
docHome: "https://docs.lowcoder.cloud/",
20572057
components: "https://cloud.lowcoder.dev/components?n={compType}",
20582058
module: "",
20592059
optionList: "",
@@ -2062,12 +2062,12 @@ export const zh = {
20622062
aboutUs: "",
20632063
changeLog: "",
20642064
introVideo: "",
2065-
devNpmPlugin: "https://docs.lowcoder.dev/build-plugins/develop-your-first-plugin",
2065+
devNpmPlugin: "https://docs.lowcoder.cloud/build-plugins/develop-your-first-plugin",
20662066
devNpmPluginText: "如何开发npm插件?",
2067-
useHost: "https://docs.lowcoder.dev/self-hosting/access-local-database-or-api",
2067+
useHost: "https://docs.lowcoder.cloud/self-hosting/access-local-database-or-api",
20682068
eventHandlerSlowdown:
2069-
"https://docs.lowcoder.dev/build-apps/event-handlers#debounce-and-throttle",
2070-
thirdLib: "https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries",
2069+
"https://docs.lowcoder.cloud/build-apps/event-handlers#debounce-and-throttle",
2070+
thirdLib: "https://docs.lowcoder.cloud/build-apps/write-javascript/use-third-party-libraries",
20712071
thirdLibUrlText: "使用第三方插件库",
20722072
},
20732073
datasourceTutorial: {
@@ -2081,8 +2081,8 @@ export const zh = {
20812081
},
20822082
queryTutorial: {
20832083
js: "",
2084-
transformer: "https://docs.lowcoder.dev/build-apps/write-javascript/transformers",
2085-
tempState: "https://docs.lowcoder.dev/build-apps/write-javascript/temporary-state",
2084+
transformer: "https://docs.lowcoder.cloud/build-apps/write-javascript/transformers",
2085+
tempState: "https://docs.lowcoder.cloud/build-apps/write-javascript/temporary-state",
20862086
},
20872087
customComponent: {
20882088
entryUrl: "https://sdk.lowcoder.cloud/custom_component.html",
@@ -2091,8 +2091,8 @@ export const zh = {
20912091
cloneUrl: "/apps/template-import/",
20922092
},
20932093
lowcoderUrl: {
2094-
createIssue: "https://github.com/lowcoder-dev/lowcoder/issues",
2095-
discord: "https://discord.com/invite/z5W2YHXdtt",
2094+
createIssue: "https://github.com/lowcoder-org/lowcoder/issues",
2095+
discord: "https://discord.com/invite/qMG9uTmAx2",
20962096
},
20972097
componentDoc: {
20982098
markdownDemoText: "**Lowcoder** 是一个开发人员友好的开源低代码平台,可在几分钟内构建内部应用.",

client/packages/lowcoder/src/util/tutorialUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DatasourceTutorials: Partial<Record<DatasourceType, string>> = {
99
es: trans("datasourceTutorial.es"),
1010
smtp: trans("datasourceTutorial.smtp"),
1111
clickHouse: trans("datasourceTutorial.clickHouse"),
12-
googleSheets: "https://docs.lowcoder.dev/data-sources/connect-to-databases/google-sheets",
12+
googleSheets: "https://docs.lowcoder.cloud/connect-your-data/apis-as-datasource/google-sheets",
1313
};
1414

1515
export const getDatasourceTutorial = (datasourceType: DatasourceType) => {

deploy/docker/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ RUN yarn build
135135
FROM nginx:1.23.4 as lowcoder-ce-frontend
136136
LABEL maintainer="lowcoder"
137137

138-
# Change default nginx user into lowcoder user
138+
# Change default nginx user into lowcoder user and remove default nginx config
139139
RUN usermod --login lowcoder --uid 9001 nginx \
140-
&& groupmod --new-name lowcoder --gid 9001 nginx
140+
&& groupmod --new-name lowcoder --gid 9001 nginx \
141+
&& rm -f /etc/nginx/nginx.conf
141142

142143
# Copy lowcoder client data
143144
COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder/build/ /lowcoder/client
@@ -149,8 +150,14 @@ COPY deploy/docker/frontend/01-update-nginx-conf.sh /docker-entrypoint.d/01-upda
149150
RUN chmod +x /docker-entrypoint.d/00-change-nginx-user.sh && \
150151
chmod +x /docker-entrypoint.d/01-update-nginx-conf.sh
151152

152-
COPY deploy/docker/frontend/nginx.conf /etc/nginx/nginx.conf
153+
COPY deploy/docker/frontend/nginx-http.conf /etc/nginx/nginx-http.conf
154+
COPY deploy/docker/frontend/nginx-https.conf /etc/nginx/nginx-https.conf
155+
COPY deploy/docker/frontend/ssl-certificate.conf /etc/nginx/ssl-certificate.conf
156+
COPY deploy/docker/frontend/ssl-params.conf /etc/nginx/ssl-params.conf
157+
158+
153159
EXPOSE 3000
160+
EXPOSE 3443
154161

155162
#############################################################################
156163

@@ -189,6 +196,7 @@ COPY --chown=lowcoder:lowcoder deploy/docker/all-in-one/etc /lowcoder/etc
189196
COPY --chown=lowcoder:lowcoder deploy/docker/all-in-one/entrypoint.sh /lowcoder/entrypoint.sh
190197

191198
EXPOSE 3000
199+
EXPOSE 3443
192200

193201
ENTRYPOINT [ "/bin/sh" , "/lowcoder/entrypoint.sh" ]
194202
CMD ["/usr/bin/supervisord", "-n" , "-c" , "/lowcoder/etc/supervisord.conf"]

deploy/docker/all-in-one/entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,20 @@ fi;
1919

2020
LOGS="/lowcoder-stacks/logs"
2121
DATA="/lowcoder-stacks/data"
22+
CERT="/lowcoder-stacks/ssl"
2223
# Create folder for holding application logs and data
2324
mkdir -p ${LOGS}/redis \
2425
${LOGS}/mongodb \
2526
${LOGS}/api-service \
2627
${LOGS}/node-service \
2728
${LOGS}/frontend \
2829
${DATA}/redis \
29-
${DATA}/mongodb
30+
${DATA}/mongodb \
31+
${CERT}
3032

3133
# Update owner of logs and data
3234
chown -R ${USER_ID}:${GROUP_ID} /lowcoder-stacks/ /lowcoder/etc
3335

34-
3536
# Enable services
3637
SUPERVISOR_AVAILABLE="/lowcoder/etc/supervisord/conf-available"
3738
SUPERVISOR_ENABLED="/lowcoder/etc/supervisord/conf-enabled"
@@ -62,7 +63,7 @@ if [ "${NODE_SERVICE_ENABLED:=true}" = "true" ]; then
6263
ln ${SUPERVISOR_AVAILABLE}/11-node-service.conf ${SUPERVISOR_ENABLED}/11-node-service.conf
6364
fi;
6465

65-
# Enable forntend if configured to run
66+
# Enable frontend if configured to run
6667
if [ "${FRONTEND_ENABLED:=true}" = "true" ]; then
6768
ln ${SUPERVISOR_AVAILABLE}/20-frontend.conf ${SUPERVISOR_ENABLED}/20-frontend.conf
6869
fi;

deploy/docker/docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
container_name: lowcoder
1010
ports:
1111
- "3000:3000"
12+
- "3443:3443"
1213
environment:
1314
# enable services
1415
REDIS_ENABLED: "true"

deploy/docker/frontend/01-update-nginx-conf.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
set -e
44

5+
echo "Creating nginx config..."
6+
if [ -e "${CERT}/fullchain.pem" ] && [ -e "${CERT}/privkey.pem" ]; then
7+
echo "Certificates found, configuring with HTTPS."
8+
ln -s /etc/nginx/nginx-https.conf /etc/nginx/nginx.conf
9+
if [ ! -e "${CERT}/dhparam.pem" ]; then
10+
echo "Diffle-Helmann parameters file not found, generating in now... (this can take some time)"
11+
openssl dhparam -out "${CERT}/dhparam.pem" 4096
12+
fi;
13+
else
14+
echo "Certificates not found, configuring with HTTP."
15+
ln -s /etc/nginx/nginx-http.conf /etc/nginx/nginx.conf
16+
fi;
17+
518
sed -i "s@__LOWCODER_API_SERVICE_URL__@${LOWCODER_API_SERVICE_URL:=http://localhost:8080}@" /etc/nginx/nginx.conf
619
sed -i "s@__LOWCODER_NODE_SERVICE_URL__@${LOWCODER_NODE_SERVICE_URL:=http://localhost:6060}@" /etc/nginx/nginx.conf
720

deploy/docker/frontend/nginx.conf renamed to deploy/docker/frontend/nginx-http.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ http {
4646
location /api {
4747
proxy_set_header X-Forwarded-Proto $scheme;
4848
proxy_set_header X-Forwarded-Host $host;
49+
proxy_set_header X-Real-IP $remote_addr;
4950
proxy_pass __LOWCODER_API_SERVICE_URL__;
5051
}
5152

5253
location /node-service/plugin-icons {
5354
proxy_set_header X-Forwarded-Proto $scheme;
5455
proxy_set_header X-Forwarded-Host $host;
56+
proxy_set_header X-Real-IP $remote_addr;
5557
proxy_pass __LOWCODER_NODE_SERVICE_URL__;
5658
}
5759
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
user lowcoder;
2+
3+
worker_processes 1;
4+
5+
events {
6+
worker_connections 1024;
7+
}
8+
9+
http {
10+
11+
include /etc/nginx/mime.types;
12+
default_type application/octet-stream;
13+
14+
log_format main '"$time_local" client=$remote_addr '
15+
'method=$request_method request="$request" '
16+
'request_length=$request_length '
17+
'status=$status bytes_sent=$bytes_sent '
18+
'body_bytes_sent=$body_bytes_sent '
19+
'referer=$http_referer '
20+
'http_x_forwarded_for=$http_x_forwarded_for '
21+
'user_agent="$http_user_agent" '
22+
'upstream_addr=$upstream_addr '
23+
'upstream_status=$upstream_status '
24+
'request_time=$request_time '
25+
'upstream_response_time=$upstream_response_time '
26+
'upstream_connect_time=$upstream_connect_time '
27+
'upstream_header_time=$upstream_header_time';
28+
29+
keepalive_timeout 65;
30+
sendfile on;
31+
#tcp_nopush on;
32+
33+
server {
34+
listen 3443 ssl;
35+
root /lowcoder/client;
36+
37+
include /etc/nginx/ssl-certificate.conf;
38+
include /etc/nginx/ssl-params.conf;
39+
40+
location / {
41+
try_files $uri /index.html;
42+
43+
if ($request_filename ~* .*.(html|htm)$) {
44+
add_header Cache-Control no-cache;
45+
}
46+
}
47+
48+
location /api {
49+
proxy_set_header X-Forwarded-Proto $scheme;
50+
proxy_set_header X-Forwarded-Host $host;
51+
proxy_set_header X-Real-IP $remote_addr;
52+
proxy_pass __LOWCODER_API_SERVICE_URL__;
53+
}
54+
55+
location /node-service/plugin-icons {
56+
proxy_set_header X-Forwarded-Proto $scheme;
57+
proxy_set_header X-Forwarded-Host $host;
58+
proxy_set_header X-Real-IP $remote_addr;
59+
proxy_pass __LOWCODER_NODE_SERVICE_URL__;
60+
}
61+
}
62+
63+
}

0 commit comments

Comments
 (0)