Skip to content

Commit

Permalink
updated deployment and server port
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zenith committed Apr 10, 2024
1 parent fab7e9b commit 327b0d9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/client.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master # Change this to your branch name if not 'main'
paths:
- 'client/**'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/server.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master # Change this to your branch name if not 'main'
paths:
- 'server/**'

jobs:
build:
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Define upstream block with the two web servers
upstream backend_servers {
server localhost:8080; # IP address and port of the first web server
server 10.0.0.2:80; # IP address and port of the second web server
}

# HTTP server block
server {
listen 80; # Listen on port 80

# Define location block to handle requests
location / {
proxy_pass http://backend_servers; # Pass requests to the upstream servers
proxy_redirect off; # Disable automatic redirects
proxy_set_header Host $host; # Set the Host header to the original request's host
proxy_set_header X-Real-IP $remote_addr; # Set the X-Real-IP header to the client's IP address
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Set the X-Forwarded-For header to include the client's IP address
proxy_set_header X-Forwarded-Proto $scheme; # Set the X-Forwarded-Proto header to the original request's scheme (HTTP or HTTPS)
}
}
2 changes: 1 addition & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ResumeScorePage from "./pages/ResumeScorePage";
import ResumeListPage from "./pages/ResumeListPage";
import UpdateApplicationStatusPage from "./pages/UpdateApplicationStatusPage";

export const serverUrl = "http://172.171.242.107:8080/api/v1";
export const serverUrl = "http://172.171.242.107:80/api/v1";

function App() {
return (
Expand Down

0 comments on commit 327b0d9

Please sign in to comment.