Skip to content

Commit

Permalink
include ngix
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondhtet committed Jul 13, 2024
1 parent 309aa1c commit b5cf760
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Build
run: npm run build --if-present
run: npm run build
env:
NEXT_PUBLIC_COGNITO_CLIENT_ID: ${{ secrets.COGNITO_CLIENT_ID }}
NEXT_PUBLIC_QUEMISTRY_GATEWAY_URL: ${{ secrets.QUEMISTRY_GATEWAY_URL }}
Expand Down
15 changes: 15 additions & 0 deletions default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 80;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

location /api/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
}
}

0 comments on commit b5cf760

Please sign in to comment.