Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
29a178f1
Commit
29a178f1
authored
Sep 10, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docker
parent
b4bbbab5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
Dockerfile
Dockerfile
+2
-2
docker/taiko-web-nginx.conf
docker/taiko-web-nginx.conf
+29
-7
No files found.
Dockerfile
View file @
29a178f1
...
...
@@ -3,13 +3,13 @@ FROM node:stretch-slim
#RUN sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list && \
# sed -i 's/security.debian.org/mirrors.163.com/g' /etc/apt/sources.list
#pm2
RUN
npm
install
-g
pm2
# apt
RUN
apt update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
git python2.7 python-virtualenv python3.5 python3-virtualenv ffmpeg nginx
#pm2
RUN
npm
install
-g
pm2
COPY
. /taiko-web
WORKDIR
/taiko-web
...
...
docker/taiko-web-nginx.conf
View file @
29a178f1
gzip_vary
on
;
gzip_comp_level
6
;
gzip_disable
msie6
;
gzip_proxied
any
;
gzip_types
text
/
plain
text
/
css
text
/
javascript
application
/
javascript
application
/
json
application
/
x
-
javascript
text
/
xml
application
/
xml
application
/
xml
+
rss
;
map
$
http_upgrade
$
connection_upgrade
{
default
upgrade
;
''
close
;
}
server
{
listen
80
;
listen
80
http2
;
server_name
_
;
server_tokens
off
;
location
/ {
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Host
$
server_name
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
connection_upgrade
;
proxy_read_timeout
7200
s
;
proxy_pass
http
://
127
.
0
.
0
.
1
:
34801
;
proxy_max_temp_file_size
50000
m
;
proxy_pass
http
://
127
.
0
.
0
.
1
:
34801
;
}
location
~ ^/(
assets
|
songs
|
src
)/ {
root
/
taiko
-
web
/
public
;
location
~ ^/
songs
/([
0
-
9
]+)/
preview
\.
mp3
$ {
expires
30
d
;
try_files
$
uri
/
api
/
preview
?
id
=$
1
;
}
location
~ ^/
songs
/([
0
-
9
]+)/
main
\.(
mp3
|
ogg
)$ {
expires
max
;
}
location
~ ^/
songs
/([
0
-
9
]+)/*\.(
tja
|
osu
)$ {
add_header
Cache
-
Control
no
-
store
;
expires
-
1
;
}
location
~ ^/
src
/ {
expires
1
h
;
}
}
location
/
p2
{
proxy_pass
http
://
127
.
0
.
0
.
1
:
34802
;
proxy_http_version
1
.
1
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
"Upgrade"
;
proxy_set_header
Connection
$
connection_upgrade
;
proxy_pass
http
://
127
.
0
.
0
.
1
:
34802
;
}
}
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