outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Is it possible to share the same config on multiple servers?

Open GavinTao1219 opened this issue 7 years ago • 4 comments

Since the ports and passwords are generated randomly, is it possible to make multiple servers share same configurations? For example, I have server A and server B, and I want both servers have port 123 running Shadowsocks service and share the same password, encryption, protocol, etc.

I try to do this so that I can use Haproxy to run load balancer among multiple Outline servers.

Thank you!

GavinTao1219 avatar Jul 24 '18 17:07 GavinTao1219

@GavinTao1219 Thanks for the suggestion! Load balancing is something we're starting to think about but which we probably won't be able to address for some time. In the meantime, I think the only way to achieve this would be to manually mirror the contents of /root/shadowbox/persisted-state/shadowbox_config.json across each machine. Depending on how much churn you have in your access keys, this may or may not be viable.

trevj avatar Jul 27 '18 19:07 trevj

@trevj am I right?:

add key for 'Bob' edit /root/shadowbox/persisted-state/shadowbox_config.json and change Bob's password to qwerty123 now Bob can connect to Outline server using qwerty as password(as part of base64 string)

Are there any other configs/steps need to be done for this result?

lgg avatar Sep 23 '18 06:09 lgg

@lgg Apologies for the slow reply. Yes, that should do it for Bob.

trevj avatar Sep 28 '18 20:09 trevj

Not sure whether the thread is suitable for further discussion. Still, is there a possibility to unobtrusively (without service restart) update config.json? The main concern is better to be able to add existing access keys.

JohnGurin avatar Aug 08 '22 09:08 JohnGurin

but I have nothing in my folder /root/shadowbox/persisted-state/

Simplici avatar Jan 10 '23 10:01 Simplici