
IT/파이썬 2021. 6. 30.
작업중 - 서버 구조 구성 Flask API + ReactJS Frontend + GUnicorn
잊지않기 위해서 일단 저장. https://yasoob.me/posts/how-to-setup-and-deploy-jwt-auth-using-react-and-flask/ Setting up & Deploying JWT based auth using Flask & React - Yasoob Khalid Hi everyone! 👋 I was working on a React project these last couple of weeks and I had to implement login functionality. I searched around and most of the solutions I found relied on Redux or some other huge dependency that I wasn..

IT/리눅스 2021. 6. 2.
우분투 Nginx - 동일 포트 http 접근 https 리다이렉트
포트가 다른 경우에는 그냥 리다이렉트 하면 되는데. 비표준 포트를 사용하는 경우, http 로 접근했을 때 같은 포트의 https 로 보내 주고 싶다. 비슷한 고민이 있던 다른이들의 흔적을 찾음 :) [nginx] 같은 포트로 들어오는 http를 https 로 넘기기 https://blog.bandoche.com/622 질문 이걸 해결하기 위해 구글링. Force redirect to https on specific port on nginx? 질문 자체를 가져와 봤다. 한글로 써 놓기 쉽지 않네. 내용은 아래와 같은 질문이다. 나랑 똑같은 고민 I have website on port 8080 and I want to force https on it. ex. If I type http://mywebsit..

IT/리눅스 2021. 5. 28.
우분투 18.04 LTS 웹서버 Nginx 설치 및 서비스 등록
우분투 18.04 LTS 웹서버 Nginx 설치 및 서비스 등록도 별거 없다. 그냥 명령어 몇개로 웹서버를 간단하게는 바로 올릴 수 있다. nginx 설치 설치 로그로 대신하련다. twmini@twmini-ThinkCentre-M600:~$ sudo apt-get install nginx [sudo] twmini의 암호: 패키지 목록을 읽는 중입니다... 완료 의존성 트리를 만드는 중입니다 상태 정보를 읽는 중입니다... 완료 다음의 추가 패키지가 설치될 것입니다 : libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx-commo..

IT/파이썬 2021. 1. 20.
파이썬 - Flask 모듈을 Gunicorn 을 이용하여 Nginx 에 연동하기 - WSGI 서버
Flask 를 이용해서 파이썬 서비스를 개발했다. 그런데, 실행을 시켜보면 WSGI 서버를 사용해라는 경고가 떡하니 불안하게 만드네... WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. 요는 개발 단계에서 테스트로 flask 서버를 이용해도 무방하지만, 실제 배포 서비스 개시하는 production 단계에서는 WSGI 서버를 사용해라는 것이 요지이다. 아파치나 Nginx 서버에 연동해서 이 flask 모듈을 자동으로 불러 줄 수 있도록 설정해야 한다. 먼저 WSGI 를 설정하려고 찾아보다가 지-유니콘 이라는 모듈을 쓰면 아주 쉽고 성능도 괜찮게 쓸 수 있다는..
