Skip to content
3 changes: 3 additions & 0 deletions .github/workflows/deployFront.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
rm -rf node_modules package-lock.json
npm install
npm install --save-dev vite rollup

#- name: Clean dist
# run: rm -rf frontend/dist

- name: Build frontend
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
.env
*.pem
.idea/
et --hard HEAD~1
2 changes: 1 addition & 1 deletion backend/pirocheck/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ server:
session:
cookie:
http-only: true # 세션 쿠키를 HttpOnly로 설정 (JS에서 접근 불가)
secure: false # HTTPS 전용 전송 (Https -> true로 바꿔야 함)
secure: true # HTTPS 전용 전송 (Https -> true로 바꿔야 함)
same-site: Lax # CSRF 방지
timeout: 30m # 세션 타임아웃 30분 (30 minutes)
address: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/api.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";

const api = axios.create({
baseURL: "http://api.pirocheck.org:8080/api",
baseURL: "https://api.pirocheck.org/api",
// 수정 필요한지 재검 필요함
// "http://api.pirocheck.org:8080/api"
withCredentials: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const loginUser = async ({ name, password }) => {
const res = await fetch("http://api.pirocheck.org:8080/api/login", {
const res = await fetch("https://api.pirocheck.org/api/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/AdminStudentAssignment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const AdminStudentAssignment = () => {
id: task.id,
label: task.assignmentName,
status: task.status,
//modified: false,
modified: false,
})),
})),
}));
Expand Down
3 changes: 2 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [react()],
server: {
proxy: {
"/api": {
target: "http://api.pirocheck.org:8080/api",
target: "https://api.pirocheck.org/api",
changeOrigin: true,
},
},
Expand Down