Ticket #2295: ewa_passwords.diff

File ewa_passwords.diff, 1.5 KB (added by ewa, 13 months ago)
  • master/docs/tutorial/tour.rst

    diff --git a/master/docs/tutorial/tour.rst b/master/docs/tutorial/tour.rst
    index 1ceeeaa..f4d7e99 100644
    a b Now, look for the section marked *PROJECT IDENTITY* which reads:: 
    4848  c['titleURL'] = "http://divmod.org/trac/wiki/DivmodPyflakes" 
    4949 
    5050If you want, you can change either of these links to anything you want to see what happens when you change them.  
     51 
     52Setting Authorized Web Users 
     53---------------------------- 
     54 
     55Further down, look for the WebStatus configuration:: 
     56 
     57   c['status'] = [] 
     58    
     59   from buildbot.status import html                                                    
     60   from buildbot.status.web import authz, auth                                         
     61    
     62   authz_cfg=authz.Authz( 
     63       # change any of these to True to enable; see the manual for more                
     64       # options                                                                       
     65       auth=auth.BasicAuth([("pyflakes","pyflakes")]), 
     66       gracefulShutdown = False, 
     67       forceBuild = 'auth', # use this to test your slave once it is set up            
     68       forceAllBuilds = False, 
     69       pingBuilder = False, 
     70       stopBuild = False, 
     71       stopAllBuilds = False, 
     72       cancelPendingBuild = False, 
     73   ) 
     74   c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg)) 
     75 
     76The auth.BasicAuth() define authorized users and their passwords.  You can change these or add new ones. 
     77 
    5178After making a change go into the terminal and type:: 
    5279 
    5380  buildbot reconfig master