outline-server

Outline Manager, developed by Jigsaw. The Outline Manager application creates and manages Outline servers, powered by Shadowsocks. It uses the Electron framework to offer support for Windows, macOS and Linux.

Github星跟踪图

Outline Server

Build Status

This repository has all the code needed to create and manage Outline servers on
DigitalOcean. An Outline server runs instances of Shadowsocks proxies and
provides an API used by the Outline Manager application.

Go to https://getoutline.org for ready-to-use versions of the software.

Components

The system comprises the following components:

  • Outline Server: a proxy server that runs a Shadowsocks instance for each
    access key and a REST API to manage the access keys. The Outline Server runs
    in a Docker container in the host machine.

    See src/shadowbox

  • Outline Manager: an Electron application that
    can create Outline Servers on the cloud and talks to their access key
    management API to manage who has access to the server.

    See src/server_manager

  • Metrics Server: a REST service that the Outline Server talks to
    if the user opts-in to anonymous metrics sharing.

    See src/metrics_server

Code Prerequisites

In order to build and run the code, you need the following installed:

  • Node
  • Yarn
  • Wine, if you would like to generate binaries for Windows.

Then you need to install all the NPM package dependencies:

yarn

Note: If you are using root (not recommended on your dev machine, maybe in a container), you need to add { "allow_root": true } to your /root/.bowerrc file.

This project uses Yarn workspaces.

Build System

We have a very simple build system based on package.json scripts that are called using yarn
and a thin wrapper for what we call build "actions".

We've defined a do package.json script that takes an action parameter:

yarn do $ACTION

This command will define a do_action() function and call ${ACTION}_action.sh, which must exist.
The called action script can use do_action to call its dependencies. The $ACTION parameter is
always resolved from the project root, regardless of the caller location.

The idea of do_action is to keep the build logic next to where the relevant code is.
It also defines two environmental variables:

  • ROOT_DIR: the root directory of the project, as an absolute path.
  • BUILD_DIR: where the build output should go, as an absolute path.

Build output

Building creates the following directories under build/:

  • web_app/: The Manager web app.
    • static/: The standalone web app static files. This is what one deploys to a web server or runs with Electron.
  • electron_app/: The launcher desktop Electron app
    • static/: The Manager Electron app to run with the electron command-line
    • bundled/: The Electron app bundled to run standalone on each platform
    • packaged/: The Electron app bundles packaged as single files for distribution
  • invite_page: the Invite Page
    • static: The standalone static files to be deployed
  • shadowbox: The Proxy Server

The directories have subdirectories for intermediate output:

  • ts/: Autogenerated Typescript files
  • js/: The output from compiling Typescript code
  • browserified/: The output of browserifying the JavaScript code

To clean up:

yarn run clean

主要指标

概览
名称与所有者Jigsaw-Code/outline-server
主编程语言TypeScript
编程语言Shell (语言数: 6)
平台
许可证Apache License 2.0
所有者活动
创建于2018-03-13 21:24:49
推送于2025-04-14 19:05:56
最后一次提交2025-03-31 11:02:33
发布数1102
最新版本名称server-v1.12.3 (发布于 )
第一版名称daily-2018-03-16 (发布于 )
用户参与
星数6k
关注者数146
派生数817
提交数1.4k
已启用问题?
问题数708
打开的问题数144
拉请求数651
打开的拉请求数16
关闭的拉请求数154
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?