Skip to content

swugether/OCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCR

uvicorn main:app --reload --port 8000

Install

nginx

$ sudo apt-get update
$ sudo apt-get install nginx

Nginx 설정 파일 수정

sudo vi /etc/nginx/sites-available/default
server {
    listen 80;
    server_name {탄력적 IP};

    location /spring-boot/ {
        proxy_pass http://localhost:8080/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /fastapi/ {
        proxy_pass http://localhost:8000/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

FastAPI & uvicorn

$ sudo apt-get install python3-pip
$ sudo apt-get pip3 install fastapi
$ sudo apt-get pip3 install uvicorn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages