Def f1():
while True:
time.sleep(5)
pyautogui.keyDown('space')
time.sleep(1.65)
pyautogui.keyUp('space')
time.sleep(3)
x = 0
while x != 35:
pyautogui.keyDown('space')
time.sleep(1)
pyautogui.keyUp('space')
x += 1
continue
pyautogui.keyDown('space')
time.sleep(15)
pyautogui.keyUp('space')
print(i)
i += 1
Def f2():
if pyautogui.locateOnScreen('qwe.PNG') == None:
print("нет рыбки, ловим дальше")
continue
else:
pyautogui.click(x=168, y=674)
pyautogui.click(pyautogui.locateCenterOnScreen('qwe.PNG'))
fish+=1
print('Опа Рыбка, '+ str(fish))
continue
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.mysyte.ru;
# SSL
ssl_certificate /etc/letsencrypt/live/mysyte.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mysyte.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mysyte.ru/chain.pem;
# security
include nginxconfig.io/security.conf;
# restrict methods
if ($request_method !~ ^(PUT|PATCH|DELETE|HEAD|CONNECT|OPTIONS|TRACE)$) {
return '405';
}
# reverse proxy
location / {
proxy_pass https://192.168.0.5:8080;
include nginxconfig.io/proxy.conf;
}
# additional config
include nginxconfig.io/general.conf;
}
# HTTP redirect
server {
listen 80;
listen [::]:80;
server_name mysyte.ru;
include nginxconfig.io/letsencrypt.conf;
location / {
return 301 https://mysyte.ru$request_uri;
}
}
Alexey Dmitriev Sanes Вот так должен выглядеть если мне нужно перенаправить с cluoud.mysyte.ru на виртуалку с облаком?