Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
bd1c037a
Commit
bd1c037a
authored
Nov 22, 2021
by
gxkai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/2.5.0' into 2.5.0
parents
b3193332
fa6adf02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
0 deletions
+159
-0
Dockerfile
docker/Dockerfile
+9
-0
baas-dev.conf
docker/baas-dev.conf
+62
-0
baas.conf
docker/baas.conf
+88
-0
No files found.
docker/Dockerfile
0 → 100644
View file @
bd1c037a
FROM
nginx:stable-alpine
COPY
dist /usr/share/nginx/ide/
# COPY baas-dev.conf /etc/nginx/conf.d/baas-.conf
# COPY docker/*.sh /docker-entrypoint.d/
# RUN rm -rf /var/log/nginx/access.log && rm -rf /var/log/nginx/error.log
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
docker/baas-dev.conf
0 → 100644
View file @
bd1c037a
map
$
http_upgrade
$
connection_upgrade
{
default
upgrade
;
''
close
;
}
server
{
listen
80
;
server_name
localhost
;
location
/
custom
-
context
-
path
{
context
-
cmd
/
usr
/
share
/
nginx
/
console
;
index
index
.
html
index
.
htm
;
try_files
$
uri
$
uri
/ /
custom
-
context
-
path
/
index
.
html
;
}
location
/
root
/ {
client_max_body_size
300
m
;
proxy_connect_timeout
300
s
;
proxy_send_timeout
300
s
;
proxy_read_timeout
300
s
;
proxy_pass
http
://
baas
-
gateway
:
8088
/;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
HTTP_X_FORWARDED_FOR
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_redirect
default
;
}
location
/
api
{
client_max_body_size
300
m
;
proxy_connect_timeout
300
s
;
proxy_send_timeout
300
s
;
proxy_read_timeout
300
s
;
proxy_pass
http
://
baas
-
gateway
:
8088
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
HTTP_X_FORWARDED_FOR
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_redirect
default
;
}
location
/
websocket
/ {
proxy_pass
http
://
baas
-
gateway
:
8088
/;
proxy_read_timeout
300
s
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
connection_upgrade
;
}
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
console
;
}
}
docker/baas.conf
0 → 100644
View file @
bd1c037a
map
$
http_upgrade
$
connection_upgrade
{
default
upgrade
;
''
close
;
}
server
{
listen
80
;
server_name
baasadmin
.
33
.
cn
;
return
301
https
://
baasadmin
.
33
.
cn
;
location
/ {
try_files
$
uri
$
uri
/ =
404
;
}
}
server
{
listen
443
ssl
;
keepalive_timeout
70
;
ssl_protocols
TLSv1
TLSv1
.
1
TLSv1
.
2
;
ssl_ciphers
AES128
-
SHA
:
AES256
-
SHA
:
RC4
-
SHA
:
DES
-
CBC3
-
SHA
:
RC4
-
MD5
;
ssl_certificate
/
etc
/
nginx
/
ssl
/
baas
.
33
.
cn
.
pem
;
ssl_certificate_key
/
etc
/
nginx
/
ssl
/
baas
.
33
.
cn
.
key
;
ssl_session_cache
shared
:
SSL
:
10
m
;
ssl_session_timeout
10
m
;
server_name
baasadmin
.
33
.
cn
;
root
/
usr
/
share
/
nginx
/
console
/;
index
index
.
html
;
# 开启gzip
gzip
on
;
gzip_min_length
10
k
;
gzip_buffers
4
16
k
;
#gzip_http_version 1.0;
gzip_comp_level
9
;
gzip_types
text
/
plain
application
/
javascript
application
/
x
-
javascript
text
/
css
application
/
xml
text
/
javascript
application
/
x
-
httpd
-
php
image
/
jpeg
image
/
gif
image
/
png
;
gzip_vary
off
;
gzip_disable
"MSIE [1-6]\."
;
location
/ {
index
index
.
html
index
.
htm
;
try_files
$
uri
$
uri
/ /
index
.
html
;
}
location
/
root
/ {
client_max_body_size
300
m
;
proxy_connect_timeout
300
s
;
proxy_send_timeout
300
s
;
proxy_read_timeout
300
s
;
proxy_pass
http
://
baas
-
gateway
:
8088
/;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
HTTP_X_FORWARDED_FOR
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_redirect
default
;
}
location
/
api
{
client_max_body_size
300
m
;
proxy_connect_timeout
300
s
;
proxy_send_timeout
300
s
;
proxy_read_timeout
300
s
;
proxy_pass
http
://
baas
-
gateway
:
8088
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
HTTP_X_FORWARDED_FOR
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_redirect
default
;
}
location
/
websocket
/ {
proxy_pass
http
://
baas
-
gateway
:
8088
/;
proxy_read_timeout
300
s
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
connection_upgrade
;
}
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
console
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment