Skip to content

Commit 8c28e73

Browse files
committed
release 과정 불필요한 헤더 설정 제거
1 parent 6c017af commit 8c28e73

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,6 @@ jobs:
4040
listen [::]:80;
4141
server_name api-loa-life.duckdns.org;
4242
43-
add_header 'Access-Control-Allow-Origin' 'https://loa-life.vercel.app' always;
44-
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
45-
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Apollo-Require-Preflight,x-apollo-operation-name,apollo-require-preflight' always;
46-
add_header 'Access-Control-Allow-Credentials' 'true' always;
47-
48-
location = /graphql {
49-
if ($request_method = 'OPTIONS') {
50-
add_header 'Access-Control-Allow-Origin' 'https://loa-life.vercel.app' always;
51-
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
52-
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Apollo-Require-Preflight,x-apollo-operation-name,apollo-require-preflight' always;
53-
add_header 'Access-Control-Allow-Credentials' 'true' always;
54-
add_header 'Access-Control-Max-Age' 1728000;
55-
add_header 'Content-Type' 'text/plain; charset=utf-8';
56-
add_header 'Content-Length' 0;
57-
return 204;
58-
}
59-
60-
proxy_pass http://localhost:3001;
61-
proxy_http_version 1.1;
62-
proxy_set_header Upgrade $http_upgrade;
63-
proxy_set_header Connection 'upgrade';
64-
proxy_set_header Host $host;
65-
proxy_cache_bypass $http_upgrade;
66-
}
67-
6843
location / {
6944
proxy_pass http://localhost:3001;
7045
proxy_http_version 1.1;

0 commit comments

Comments
 (0)