This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream frontends { | |
| server 127.0.0.1:8222; | |
| } | |
| server { | |
| listen 8666; | |
| # Allow file uploads max 50M for example | |
| client_max_body_size 50M; | |
| upload_buffer_size 16M; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| import traceback | |
| import hashlib | |
| from flask import Flask, request, redirect, jsonify, abort | |
| app = Flask(__name__) | |
| _HERE = os.path.dirname(os.path.abspath(__file__)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import sys | |
| import MultipartPostHandler, urllib2, cookielib | |
| import threading | |
| st = 0 | |
| def test(url): | |
| # cookies = cookielib.CookieJar() | |
| opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(), |
NewerOlder