Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.79k stars 780 forks source link

How to set custom server port when deploy outline server? #1106

Open alexlii1971 opened 2 years ago

alexlii1971 commented 2 years ago

Hello,

We are in China, and I found the server was quite franquately blocked.

Would you please let me know what is the default port when Outline server is installed on server? and anyway to set port when server is installed?

Thanks and have a nice day.

khamroevjs commented 2 years ago

Hi! As far as I know, ports are generated randomly, but you can set your custom ports. Here is a command for this:

(Replace MANAGMENT_PORT and ACCESS_KEY_PORT with your custom ports)

sudo bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)" install_server.sh --api-port=MANAGMENT_PORT --keys-port=ACCESS_KEY_PORT

After applying this command in console you can see, that "Access key port" didn't change, but don't pay attention to that. This is a bug, and I've opened an issue. In fact, it do changes, but on the console is printed wrong port.

PvUtrix commented 1 month ago

Worked for me, thx @khamroevjs! I believe this issue can be closed.