mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	trying to fix that card error + fix config (merci)
This commit is contained in:
		
							
								
								
									
										8
									
								
								V6.py
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								V6.py
									
									
									
									
									
								
							@@ -823,14 +823,18 @@ def CustomStart():
 | 
				
			|||||||
            driver.quit()
 | 
					            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) 
 | 
					    display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=g.vnc_port, color_depth=24) 
 | 
				
			||||||
else :
 | 
					else :
 | 
				
			||||||
    display = SmartDisplay(size=(1920, 1080)) 
 | 
					    display = SmartDisplay(size=(1920, 1080)) 
 | 
				
			||||||
display.start()
 | 
					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:
 | 
					if g.custom_start:
 | 
				
			||||||
    CustomStart()
 | 
					    CustomStart()
 | 
				
			||||||
elif g.unban:
 | 
					elif g.unban:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,9 +35,9 @@ server {
 | 
				
			|||||||
    location /novnc/websockify {
 | 
					    location /novnc/websockify {
 | 
				
			||||||
      proxy_pass http://127.0.0.1:6080/;
 | 
					      proxy_pass http://127.0.0.1:6080/;
 | 
				
			||||||
      proxy_http_version 1.1;
 | 
					      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 Connection "Upgrade";
 | 
				
			||||||
      proxy_set_header Host $host;
 | 
					      proxy_set_header Host \$host;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    location / {
 | 
					    location / {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,6 +31,13 @@ parser.add_argument(
 | 
				
			|||||||
    action="store_true",
 | 
					    action="store_true",
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					parser.add_argument(
 | 
				
			||||||
 | 
					    "-d",
 | 
				
			||||||
 | 
					    "--dev",
 | 
				
			||||||
 | 
					    dest="dev",
 | 
				
			||||||
 | 
					    help="enable dev mode",
 | 
				
			||||||
 | 
					    action="store_true",
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parser.add_argument(
 | 
					parser.add_argument(
 | 
				
			||||||
    "-c", 
 | 
					    "-c", 
 | 
				
			||||||
@@ -70,7 +77,7 @@ args = parser.parse_args()
 | 
				
			|||||||
g.custom_start = args.override
 | 
					g.custom_start = args.override
 | 
				
			||||||
g.unban = args.unban
 | 
					g.unban = args.unban
 | 
				
			||||||
g.full_log = args.fulllog
 | 
					g.full_log = args.fulllog
 | 
				
			||||||
 | 
					g.dev = args.dev
 | 
				
			||||||
if g.custom_start :
 | 
					if g.custom_start :
 | 
				
			||||||
    g.log = True
 | 
					    g.log = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user