Skip to content

sssr-dev/api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api server

GitHub license GitHub stars magic
preview

Start

# Shell

$ git clone https://github.com/sssr-dev/api-server.git
  # Cloning repo
$ cd src
$ pip install -r requirements.txt
  # Install all dependents
$ python main.py
  # Start develop server
  

Nginx configuration

server {
    server_name sssr.dev www.sssr.dev;
    listen 80;
    listen 443;
    listen [::]:80;
    listen [::]:443;


    error_page 404 /;

    location / {
        root /var/www/sssr.dev;
        index index.html;
    }
}

server {
    server_name api.sssr.dev;
    listen 80;
    listen 443;
    listen [::]:80;
    listen [::]:443;

    location / {
        proxy_pass http://127.0.0.1:11491/;
        proxy_set_header Ng-Real-Ip $remote_addr;
        proxy_set_header Ng-Real-Hostname $host;    
    }
}
server {
    
    server_name cc.sssr.dev;
    listen 80;
    listen 443;
    listen [::]:80;
    listen [::]:443;
    
    location / {
        proxy_pass http://127.0.0.1:11491/cc?nginx=;   
        proxy_set_header Ng-Real-Ip $remote_addr;
        proxy_set_header Ng-Real-Hostname $host;  
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published