본문 바로가기

Computer/Server29

Webflux exchange 와 retrieve 의 차이 Under what circumstances? I was using webflux with spring boot version 2.x.x When i was using Webclient in my codes. I was usually using exchange() after request. cause, api what i used. when failed. it response 200 HTTP Status with error body. At that time i had a big mistake. that I thought exchange() and retrieve() is same. If you think like that. you are wrong. they are different. then what .. 2021. 3. 25.
Nginx Deny all, allow specific ip Requirements - Deny all ips. - Allow specific ips ( public ip ) Prepare 0. Check your nginx nginx -V 1. If not Install or reinstall nginx with --with-http_realip_module 2. modified nginx.conf http { server { (snip) set_real_ip_from {from ip}; # IP range real_ip_header X-Forwarded-For; } } 3. implement deny, allow ( server, or location ) server { (snip) deny all; allow xxx.xxx.000.000/16 allow xx.. 2020. 4. 25.
[.htaccess] info/privacy 를 info/privacy.php 로 자동 연결해주기. apache 기준 우선 .htaccess 를 설정하기 위해서는1. rewrite 모듈을 enable !> sudo a2enmod rewrite 2. enable 한 모듈을> /etc/apache2/apache2.conf 에 설정> 아래 내용 추가```rewriteEngine On``` 3. 이후 VirtualHost 설정을 해주어야한다.해당 디렉토리 설정으로 들어간다.> vim /etc/apache2/sites-available/xxx> ** Multiviews 가 없어야 합니다.> ** AllowOverride All 4. 이제 원하는 .htaccess 를 작성한다.> 작성위치는 해당 홈디렉토리```RewriteEngine on RewriteRule ^([0-9a-zA-Z-]+)$ $1.php [NC,.. 2017. 3. 9.
[socket.io] node.js 를 이용해서 소켓서버 구성시 알게 된것들. 1. socket.io-redis 를 이용해서 , 서로 다른 인스턴스간의 소켓 공유가 가능하다. 만일, 다른 서브넷일 경우 안될 수 있음, 동일한 서브넷에서 작동하기를 권장함. 2. 이를 통해 AWS의 로드밸런스 안에 인스턴스간의 소켓 쉐어링이 가능할 것으로 보임. _ 신기하다. ** 현재 진행중인 부분에 대해서 테스트가 필요합니다.** 실제로 인스턴스가 종료될때, 방에 존재하는 유저들은 어떻게 되는지. 만일 자동으로 해당 룸의 소켓들을 leave 시키는 로직이 없다면. 해당 부분에 대해서 처리해주는 작업이 필요합니다. 3. 2017.02.21.- 컨트리뷰터의 얘기를 들어보고 실제 적용한 결과 : 내 소켓의 경우 : socket.emit('name','object'): 타 소켓에 보낼경우 : socket.. 2017. 2. 9.
반응형