-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from illacloud/CI/update_host
ci: change host
- Loading branch information
Showing
12 changed files
with
120 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM nginx:stable-alpine as runner | ||
|
||
## copy frontend | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
COPY illa-website-frontend.conf /etc/nginx/conf.d/illa-website-frontend.conf | ||
COPY ./build /opt/illa/illa-website-frontend | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
|
||
# test nginx | ||
RUN nginx -t | ||
|
||
# run | ||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
access_log /dev/stdout; | ||
error_log /dev/stderr; | ||
root /opt/illa/illa-website-frontend/; | ||
index index.html; | ||
gzip on; | ||
|
||
sub_filter_once off; | ||
location / { | ||
try_files $uri $uri/ /index.html; | ||
expires -1; | ||
} | ||
|
||
location /assets { | ||
expires 1y; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
user nginx; | ||
worker_processes 1; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '"$time_local" client=$remote_addr ' | ||
'method=$request_method request="$request" ' | ||
'request_length=$request_length ' | ||
'status=$status bytes_sent=$bytes_sent ' | ||
'body_bytes_sent=$body_bytes_sent ' | ||
'referer=$http_referer ' | ||
'http_x_forwarded_for=$http_x_forwarded_for ' | ||
'user_agent="$http_user_agent" ' | ||
'upstream_addr=$upstream_addr ' | ||
'upstream_status=$upstream_status ' | ||
'request_time=$request_time ' | ||
'upstream_response_time=$upstream_response_time ' | ||
'upstream_connect_time=$upstream_connect_time ' | ||
'upstream_header_time=$upstream_header_time'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
|
||
keepalive_timeout 65; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters