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!
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.