forked from ssbc/go-ssb-room
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
146 changed files
with
2,048 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,24 +5,25 @@ SPDX-License-Identifier: CC0-1.0 | |
--> | ||
|
||
# Getting Started | ||
|
||
There are two paths to starting your own room: creating a build from source, or downloading one | ||
of the premade releases. | ||
|
||
## Premade builds | ||
|
||
See the [releases page](https://github.com/ssb-ngi-pointer/go-ssb-room/releases) for packaged linux releases. | ||
See the [releases page](https://github.com/ssbc/go-ssb-room/releases) for packaged linux releases. | ||
|
||
We currently only distributed pre-packaged releases for Debian-compatible distributions. | ||
See [Issue #79](https://github.com/ssb-ngi-pointer/go-ssb-room/issues/79) for the details. | ||
See [Issue #79](https://github.com/ssbc/go-ssb-room/issues/79) for the details. | ||
If this doesn't work for you, read the "Creating a build" section below. | ||
|
||
After running `sudo dpkg -i go-ssb-room_v1.2.3_Linux_x86_64.deb` pay special attention to the | ||
[postinstall notes](./files/debian-postinstall.sh) for how to configure the systemd file and webserver. | ||
|
||
## Creating a build | ||
|
||
* [Download Go](https://golang.org/doc/install) & [set up your Go environment](https://golang.org/doc/install#install). You will need at least Go v1.16. | ||
* Download the repository `git clone [email protected]:ssb-ngi-pointer/go-ssb-room.git && cd go-ssb-room` | ||
* [Download Go](https://golang.org/doc/install) & [set up your Go environment](https://golang.org/doc/install#install). You will need at least Go v1.17. | ||
* Download the repository `git clone [email protected]:ssbc/go-ssb-room.git && cd go-ssb-room` | ||
* [Follow the development instructions](./development.md) | ||
* You should now have a working go-ssb-room binary! Read the HTTP Hosting section below and admin | ||
user sections below, for more instructions on the last mile. | ||
|
@@ -32,7 +33,7 @@ After running `sudo dpkg -i go-ssb-room_v1.2.3_Linux_x86_64.deb` pay special att | |
This project includes a docker-compose.yml file as well as a Docker file. Using | ||
it should be fairly straight forward. | ||
|
||
Start off by making a copy of `.env_example` called `.env` and insert your | ||
Start off by making a copy of `.env_example` called `.env` and insert your | ||
website domain there. With that done execute | ||
|
||
``` | ||
|
@@ -78,7 +79,7 @@ Two bits of rationale: | |
|
||
1. People usually want to have more than one site on their server. Put differently, we could | ||
have [LetsEncrypt](https://letsencrypt.org/) inside the go-ssb-room server but it would have to | ||
listen on port :443—blocking the use of other domains on the same IP. | ||
listen on port :443—blocking the use of other domains on the same IP. | ||
2. Listening on :443 can be pretty annoying (you might need root privileges or similar capabilities). | ||
|
||
go-ssb-room needs three headers to function properly, which need to be forwarded by the | ||
|
@@ -111,7 +112,7 @@ is often added automatically by your provider. | |
|
||
When the process is complete with `certbot`, pay attention to where the certificate has been placed | ||
in the filesystem. If it's at `/etc/letsencrypt/live/hermies.club`, it's correct, otherwise you may | ||
need to rename it e.g. `hermies.club-0001` to `hermies.club`. | ||
need to rename it e.g. `hermies.club-0001` to `hermies.club`. | ||
|
||
The example nginx configuration uses prebuilt Diffie-Hellman parameters. You can generate these | ||
with the following command: | ||
|
@@ -162,6 +163,8 @@ If you installed the Debian package, you will first need to install Go to build | |
sudo apt-get install golang-go | ||
``` | ||
|
||
(**WARNING**: please check that `golang-go` is >= 1.17 and if not, you may need to use the [official installation documentation](https://go.dev/dl/) instead. `go-ssb-room` requires at least Go 1.17.) | ||
|
||
In a new terminal window navigate to the insert-user utility folder and compile the GO-based utility into an executable your computer can use | ||
|
||
``` | ||
|
@@ -184,5 +187,4 @@ Or if you installed go-ssb-room using the Debian package: | |
sudo ./insert-user -repo "/var/lib/go-ssb-room" "@Bp5Z5TQKv6E/Y+QZn/3LiDWMPi63EP8MHsXZ4tiIb2w=.ed25519" | ||
``` | ||
|
||
You can now login in the web-front-end using these credentials | ||
|
||
It will ask you to create a password to access the web-front-end. You can now login in the web-front-end using these credentials. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.