We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
이렇게 Nginx 설정 파일을 업데이트하려 합니다.
현재 Nginx 설정 파일에는 Next.js 및 Nest.js 애플리케이션을 프록시하는 설정이 포함되어 있습니다. 이 설정은 80번 포트에서 웹 애플리케이션을 제공하고, WebSocket 연결도 관리합니다.
이 설정에서 주요 변경 사항은 다음과 같습니다:
server_name
location /api/scrum-dice
location /socket.io
proxy_pass
새로운 설정 파일:
# 새로운 Nginx 설정 파일 user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /run/nginx.pid; include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; keepalive_timeout 65; types_hash_max_size 4096; include /etc/nginx/mime.types; default_type application/octet-stream; include /etc/nginx/conf.d/*.conf; map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 127.0.0.1:8080; } server { listen 80; server_name your_domain.com; # 도메인 이름 또는 호스트 이름으로 변경 location / { proxy_pass http://127.0.0.1:3000; # Next.js 애플리케이션의 주소로 변경 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location /api/scrum-dice { proxy_pass http://127.0.0.1:8080; # Nest.js HTTP 애플리케이션의 주소로 변경 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location /socket.io { proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; } location /scrum-dice { proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; } } }
The text was updated successfully, but these errors were encountered:
Todo: @Samsam-lee
Sorry, something went wrong.
hyunnnn98
Samsam-lee
No branches or pull requests
변경 내용
이렇게 Nginx 설정 파일을 업데이트하려 합니다.
이슈 내용
현재 Nginx 설정 파일에는 Next.js 및 Nest.js 애플리케이션을 프록시하는 설정이 포함되어 있습니다. 이 설정은 80번 포트에서 웹 애플리케이션을 제공하고, WebSocket 연결도 관리합니다.
변경 내용
이 설정에서 주요 변경 사항은 다음과 같습니다:
server_name
을 실제 도메인 이름 또는 호스트 이름으로 변경하세요.location /api/scrum-dice
및location /socket.io
의proxy_pass
주소를 애플리케이션의 실제 주소로 변경하세요.새로운 설정 파일:
The text was updated successfully, but these errors were encountered: