SVN多倉庫配置
阿新 • • 發佈:2018-03-11
BE 技術分享 ini bubuko 決定 以及 mage api sna
1.先建倉庫
比如網站 有前臺 後臺 接口 3個目錄 CodeAuth不是倉庫 是用來配置密碼和權限的 怎麽建倉庫百度一大堆 不講哦
2.
這裏是passwd設置(拷貝任意一個倉庫下面的passwd文件到CodeAuth) ### This file is an example password file for svnserve. ### Its format is similar to that of svnserve.conf. As shown in the ### example below it contains one section labelled [users]. ### The name and password for each user follow, one account per line. [users] # harry = harryssecret # sally = sallyssecret liu = 123456 feng = 123456 fan = 123456 zhu = 123456 chang = 123456 changyue = 123456789 yue = 123456
3.
這裏是組設置以及組的權限(拷貝的authz) [aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe admin = liu,feng indexadmin = chang,fan,yue houadmin = zhu,chang,changyue apiadmin = zhu [index:/] @admin = rw @indexadmin = rw [admin:/] @admin = rw @houadmin = rw [api:/] @admin = rw @apiadmin = rw # [/foo/bar] # harry = rw # &joe = r # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r
4.配置下各倉庫中的svnserve.conf
anon-access = read auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file‘s location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used.### Uncomment the line below to use the default password file. password-db = /opt/svn/CodeAuth/passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file‘s location is relative to the the ### directory containing this file. If you don‘t specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = /opt/svn/CodeAuth/authz(這個就是說權限由CodeAuth/authz決定了)
...一會補充
SVN多倉庫配置