mirror fix and update
This commit is contained in:
		
							parent
							
								
									a18decf4cc
								
							
						
					
					
						commit
						79537467da
					
				| 
						 | 
				
			
			@ -136,7 +136,7 @@ func newMacaron() *macaron.Macaron {
 | 
			
		|||
		Provider: setting.SessionProvider,
 | 
			
		||||
		Config:   *setting.SessionConfig,
 | 
			
		||||
	}))
 | 
			
		||||
	m.Use(csrf.Generate(csrf.Options{
 | 
			
		||||
	m.Use(csrf.Csrfer(csrf.Options{
 | 
			
		||||
		Secret:     setting.SecretKey,
 | 
			
		||||
		SetCookie:  true,
 | 
			
		||||
		Header:     "X-Csrf-Token",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -154,7 +154,7 @@ HOST =
 | 
			
		|||
 | 
			
		||||
[session]
 | 
			
		||||
; Either "memory", "file", "redis" or "mysql", default is "memory"
 | 
			
		||||
PROVIDER = file
 | 
			
		||||
PROVIDER = memory
 | 
			
		||||
; Provider config options
 | 
			
		||||
; memory: not have any config yet
 | 
			
		||||
; file: session file path, e.g. `data/sessions`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ organization=Organisation
 | 
			
		|||
mirror=Miroir
 | 
			
		||||
new_repo=Nouveau Référentiel
 | 
			
		||||
new_migrate=Nouvelle Migration
 | 
			
		||||
new_fork=Nouveau référentiel de fourche
 | 
			
		||||
new_fork=Nouveau Référentiel d'Embranchement
 | 
			
		||||
new_org=Nouvelle Organisation
 | 
			
		||||
manage_org=Gérer les Organisations
 | 
			
		||||
admin_panel=Administration
 | 
			
		||||
| 
						 | 
				
			
			@ -257,9 +257,9 @@ repo_name=Nom du Référentiel
 | 
			
		|||
repo_name_helper=Idéalement, le nom d'un Référentiel devrait être court, mémorable et <strong>unique</strong>.
 | 
			
		||||
visibility=Visibilité
 | 
			
		||||
visiblity_helper=Ce Référentiel est <span class="label label-red label-radius">Privé</span>
 | 
			
		||||
fork_repo=Référentiel de la fourche
 | 
			
		||||
fork_from=Fourche de
 | 
			
		||||
fork_visiblity_helper=Référentiel Aristide ne peut pas changer sa visiblité
 | 
			
		||||
fork_repo=Référentiel d'Embranchement
 | 
			
		||||
fork_from=Embranchement de
 | 
			
		||||
fork_visiblity_helper=Un Référentiel d'embranchement ne peut pas changer sa visiblité
 | 
			
		||||
repo_desc=Description
 | 
			
		||||
repo_lang=Langue
 | 
			
		||||
repo_lang_helper=Sélectionner un fichier .gitignore
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -235,6 +235,8 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
 | 
			
		|||
 | 
			
		||||
	setting.Cfg.SetValue("", "RUN_MODE", "prod")
 | 
			
		||||
 | 
			
		||||
	setting.Cfg.SetValue("session", "PROVIDER", "file")
 | 
			
		||||
 | 
			
		||||
	setting.Cfg.SetValue("log", "MODE", "file")
 | 
			
		||||
 | 
			
		||||
	setting.Cfg.SetValue("security", "INSTALL_LOCK", "true")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue