Updating NGINX configuration
We don't need to setup server_names_hash_bucket_size if it's present in standard eole configuration
This commit is contained in:
@ -14,3 +14,15 @@ def toCidr(ip,mask=False):
|
||||
return str(IP(data))
|
||||
except:
|
||||
return data
|
||||
|
||||
def readPass(encoder,reader):
|
||||
try:
|
||||
mypwdreader=open(reader, "r").readline().rstrip()
|
||||
if encoder == "":
|
||||
return mypwdreader
|
||||
elif encoder == "base64":
|
||||
import base64
|
||||
return base64.b64encode(mypwdreader)
|
||||
|
||||
except:
|
||||
return "mot de passe inconnu"
|
Reference in New Issue
Block a user