Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main -> dev #65

Merged
merged 9 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}

}
}
}