Skip to content

python flask blueprint docker crawl mysql stock statistics

Notifications You must be signed in to change notification settings

chenzhaoplus/qty_fin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qty_fin

Stock Statistics

image

boot in ide

run ./qty_fin.py

then visit http://localhost:9999

publish in docker

Dockerfile and your code

image

put code in the folder 'app'

image

docker build

docker build -t qtyfin_i .

run docker container

docker run --net=host --name qtyfin_c -itd qtyfin_i

install nginx

visit How to install nginx

add nginx server config

server {
    listen       8888;
    server_name  localhost;
    
    # front server proxy
    location / {
        try_files $uri  /index.html;
        root   /usr/local/nginx/front/qtyfin/dist;
        index index.html; 
    }
    # backend server proxy
    location ^~/backend {
        proxy_pass http://localhost:9999/;   # the last '/' is necessary
        proxy_redirect off;
        #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 Host $http_host;         
        client_max_body_size 10m;
        proxy_connect_timeout 90;
        proxy_read_timeout 90;  
        proxy_set_header Cookie $http_cookie;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
    
    location ~ /.ht {
        deny  all;
    }
}

front

visit https://github.com/chenzhaoplus/qtyfin

About

python flask blueprint docker crawl mysql stock statistics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published