Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zihe33Huang committed Nov 17, 2023
2 parents 4796cd3 + 1a7c787 commit e078c7c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
MY_APPNAME: lisayoga_server
on:
push:
branches: [ master ]
branches: [master]

jobs:
build: #name of the job
Expand All @@ -17,8 +17,8 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
java-version: "8"
distribution: "adopt"

- name: Build with Maven
run: mvn -B package --file pom.xml
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,26 @@ SpringBoot
Docker
Docker-Compose
MySQL
Nginx


# Nginx

Used for Port Forwarding.
PS: server_name is necessary, otherwise nginx may not work

```
server {
listen 80;
server_name 13.42.17.166;
location /lisayoga/ {
proxy_pass http://127.0.0.1:12010/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```

0 comments on commit e078c7c

Please sign in to comment.