-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated the project to use node 18LTS and npm as package manager; * added DOckerfile and docker worklow to tagged releases * added missing run instruction to npm in workflow file;
- Loading branch information
1 parent
c84dfae
commit b8cf612
Showing
40 changed files
with
7,421 additions
and
6,656 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 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,4 @@ | ||
### 1.3.0 | ||
- upgraded the project to Node.js 18 LTS | ||
- switched to npm package manager | ||
- added Dockerfile and automatic build of docker image on tagged release |
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,16 @@ | ||
FROM nginx:stable-alpine3.17 | ||
|
||
# copy the dist folder and unzip it | ||
COPY dist.zip /dist.zip | ||
RUN unzip -o -q dist.zip -d / | ||
RUN cp -rf /dist/* /usr/share/nginx/html/ | ||
|
||
COPY nginx-template.conf /nginx-template.conf | ||
|
||
ENV PORT 80 | ||
ENV DOLLAR $ | ||
ENV API_URL http://localhost:8080 | ||
|
||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/bin/sh", "-c", "envsubst < /nginx-template.conf > /etc/nginx/nginx.conf && nginx -g 'daemon off;'"] |
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,39 @@ | ||
worker_processes 1; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
default_type application/octet-stream; | ||
|
||
keepalive_timeout 65; | ||
|
||
gzip on; | ||
gzip_min_length 10240; | ||
gzip_proxied any; | ||
gzip_types *; | ||
|
||
server { | ||
listen ${PORT}; | ||
server_name ${DOLLAR}hostname; | ||
|
||
add_header Cache-Control no-cache; | ||
|
||
location /api { | ||
proxy_set_header Host ${DOLLAR}host; | ||
proxy_set_header X-Real-IP ${DOLLAR}remote_addr; | ||
client_max_body_size 500M; | ||
proxy_pass ${API_URL}; | ||
} | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
try_files ${DOLLAR}uri /index.html =404; | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.