2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

Merge pull request #8 from offen/dev-domain

Refer to real world .dev domain
This commit is contained in:
Frederik Ring 2019-05-01 20:35:36 -06:00 committed by GitHub
commit b25f93610f
3 changed files with 12 additions and 12 deletions

View File

@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at frederik.ring@gmail.com. All
reported by contacting the project team at mail@offen.dev. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.

View File

@ -18,22 +18,22 @@ Project planning and issue tracking is done using [Pivotal Tracker](https://www.
#### Local cookies and SSL
In local development __offen__ requires to be served both via SSL (in order to use window.crypto) as well as a `local.offen.org` host.
In local development __offen__ requires to be served both via SSL (in order to use window.crypto) as well as a `local.offen.dev` host.
This requires the following steps to be taken:
1. Edit your `/etc/hosts` to include the following line:
```
127.0.0.1 local.offen.org
127.0.0.1 local.offen.dev
```
2. Install and setup [mkcert](https://github.com/FiloSottile/mkcert). Assuming you have Go installed, this looks like:
```
$ go get -u github.com/FiloSottile/mkcert
$ mkcert -install
```
3. Navigate into the repository root and create a local certificate and key for the `local.offen.org` host:
3. Navigate into the repository root and create a local certificate and key for the `local.offen.dev` host:
```
$ mkcert local.offen.org
$ mkcert local.offen.dev
```
You can test setup by starting the application:
@ -42,7 +42,7 @@ You can test setup by starting the application:
$ docker-compose up
```
Now you should be able to access <https://local.offen.org:8080/status> in your browser without any security warnings.
Now you should be able to access <https://local.offen.dev:8080/status> in your browser without any security warnings.
#### `server`
@ -93,4 +93,4 @@ npm test
### License
MIT © offen
MIT © [offen](https://www.offen.dev)

View File

@ -3,15 +3,15 @@ server:
working_dir: /server
volumes:
- ./server:/server
- ./local.offen.org.pem:/server/local.offen.org.pem
- ./local.offen.org-key.pem:/server/local.offen.org-key.pem
- ./local.offen.dev.pem:/server/local.offen.dev.pem
- ./local.offen.dev-key.pem:/server/local.offen.dev-key.pem
- $GOPATH/pkg/mod:/go/pkg/mod
environment:
- GOPATH=/go
- POSTGRES_CONNECTION_STRING=postgres://postgres:develop@database:5432/postgres?sslmode=disable
ports:
- 8080:8080
command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable -key local.offen.org-key.pem -cert local.offen.org.pem
command: go run cmd/server/main.go -conn postgres://postgres:develop@database:5432/postgres?sslmode=disable -key local.offen.dev-key.pem -cert local.offen.dev.pem
links:
- database
@ -25,8 +25,8 @@ vault:
working_dir: /vault
volumes:
- ./vault:/vault
- ./local.offen.org.pem:/vault/local.offen.org.pem
- ./local.offen.org-key.pem:/vault/local.offen.org-key.pem
- ./local.offen.dev.pem:/vault/local.offen.dev.pem
- ./local.offen.dev-key.pem:/vault/local.offen.dev-key.pem
command: npm start -- --port 9977
ports:
- 9977:9977