-recaptcha_private=#Please enter here your private Key for google recaptcha
-recaptcha_public=#Please enter here your public Key for google recaptcha
-host=0.0.0.0#With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it.
-GITHUB_CLIENT_ID=#You have to set these four variables, if not the shorter will not run. To get the github keys visit https://github.com/settings/developers and register a new oauth application. The callback path is /user/github-callback
-login=1#set this to 0 if you want to disable the oauth login. If you do so, you also don't have to fill in the oauth credentials below.
-GITHUB_CLIENT_ID=#To get the github keys visit https://github.com/settings/developers and register a new oauth application. The callback path is /user/github-callback
returnrender_template('home.html',builddate=builddate,version=version,domain=domain_prepared,recaptchaPublicKey=recaptchaPublicKey,showDomainSelect=showDomainSelect,loginbar=loginbar,cookieNotice=cookieNotice,domain_prefilled=domain_to_index[request.headers["host"]])#return the default site to create a new shorten link
returnrender_template('home.html',builddate=builddate,version=version,domain=domain_prepared,recaptchaPublicKey=recaptchaPublicKey,showDomainSelect=showDomainSelect,loginbar=loginbar,cookieNotice=cookieNotice,domain_prefilled=domain_to_index[request.headers["host"]],loginEnabled=loginEnabled)#return the default site to create a new shorten link
@app.route('/user/github-callback')#Github redirects to this link after the user authenticated. Then we use the Token we get from github and request via the github api the username and the userid