trying to fix that card error + fix config (merci)
This commit is contained in:
parent
424798c7f6
commit
07f6ff9c3c
8
V6.py
8
V6.py
|
@ -823,14 +823,18 @@ def CustomStart():
|
|||
driver.quit()
|
||||
|
||||
|
||||
if g.vnc_enabled :
|
||||
if g.vnc_enabled or g.dev:
|
||||
display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=g.vnc_port, color_depth=24)
|
||||
else :
|
||||
display = SmartDisplay(size=(1920, 1080))
|
||||
display.start()
|
||||
|
||||
webhookFailure.send(f"@silent Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
||||
webhookFailure.send(f"Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
||||
|
||||
if g.dev :
|
||||
driver = firefox_driver()
|
||||
input("kill ?")
|
||||
driver.quit()
|
||||
if g.custom_start:
|
||||
CustomStart()
|
||||
elif g.unban:
|
||||
|
|
|
@ -35,9 +35,9 @@ server {
|
|||
location /novnc/websockify {
|
||||
proxy_pass http://127.0.0.1:6080/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host \$host;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
|
@ -31,6 +31,13 @@ parser.add_argument(
|
|||
action="store_true",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-d",
|
||||
"--dev",
|
||||
dest="dev",
|
||||
help="enable dev mode",
|
||||
action="store_true",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-c",
|
||||
|
@ -70,7 +77,7 @@ args = parser.parse_args()
|
|||
g.custom_start = args.override
|
||||
g.unban = args.unban
|
||||
g.full_log = args.fulllog
|
||||
|
||||
g.dev = args.dev
|
||||
if g.custom_start :
|
||||
g.log = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue