Skip to content

Commit

Permalink
Merge pull request #65 from tempfiles-Team/main
Browse files Browse the repository at this point in the history
main -> dev
  • Loading branch information
ananjaemin committed Nov 14, 2022
2 parents 553ebe6 + f389861 commit 8a14c72
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_BACKEND_BASEURL=http://localhost:5000
REACT_APP_BACKEND_BASEURL=https://api.tempfiles.ml
# dev - http://localhost:5000
# main - https://tfb.minpeter.cf
# main - https://tfb.minpeter.cf
7 changes: 5 additions & 2 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:

- name: Set up Nodejs
uses: actions/setup-node@v3
with:
node-version: 16
with:
node-version: 16

- name: Install dependencies
run: npm install

- name: Build
run: npm run build
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM nginx:latest

COPY build /usr/share/nginx/html
# Copy the nginx configuration file
COPY nginx.conf /etc/nginx/nginx.conf

COPY build /etc/nginx/html

EXPOSE 80

Expand Down
14 changes: 14 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
events {}

http {
server {
listen 80;
location / {

if (!-e $request_filename) {
rewrite ^(.*)$ /index.html break;
}

}
}
}

0 comments on commit 8a14c72

Please sign in to comment.