Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create one read only Bitbucket Server Mirror

jiaoli che
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2018

Hello,

Is there way create one read only Bitbucket Server Mirror? Users can only git clone/pull from the mirror but can not check in code to Mirror or Primary. If Bitbucket Server Mirror support it, how to set up the read only Bitbucket Server Mirror?

Look forward to your reply, thanks!

1 answer

1 accepted

0 votes
Answer accepted
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2018

Hey Jiaoli, 

 

You can add the following lines to a mirror's bitbucket.properties file. 

plugin.mirroring.http.write.enabled=false

For mirror instances, this controls whether SCM write operations should be allowed for HTTP requests.

If enabled, write requests are redirected to the upstream server.

If disabled, an error message will be displayed when attempting a push, etc.

plugin.mirroring.ssh.proxy.enabled=false

If enabled, such commands are performed on the upstream by the mirror acting with the same user identity, rights and privileges as the user executing the command on the mirror.

If disabled, an error message will be sent to the user unless the command can be safely executed on the mirror (e.g. whoami).

Note that SSH push proxying is not supported for mirrors of bitbucket.org and this flag is ignored.

 Please note that this change will require a restart of the mirror. 

You can find more about bitbucket properties in  Bitbucket Server config properties

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events