Attention ! Gitlab fournissant maintenant nativement des certificats Let’s Encrypt aux domaines personnalisés des Gitlab Pages, nous avons coupé notre service qui le faisait automatiquement pour vous.

Il est impératif, pour que votre domaine personnalisé continue à avoir un certificat Let’s Encrypt à jour, d’activer la fonctionnalité native dans les paramètres de votre projet. Cette activation remplacera votre certificat actuel par un nouveau certificat Let’s Encrypt géré par Gitlab.

Voir les détails sur

Commit 1d3b6ab9 authored by hellekin's avatar hellekin


parent 0194b435
This README would normally document whatever steps are necessary to get the
application up and running.
## [Introduction](
Things you may want to cover:
[![pipeline status](](
* Ruby version
[![coverage report](](
* System dependencies
This is a Rails 5 API-only application using Ruby 2.5.3 (MRI) and PostgreSQL 10
with PostGIS extensions.
* Configuration
### System Dependencies
* Database creation
It is developped on Gentoo / GNU/Linux and should support any GNU/Linux system
in production. For Ruby, we recommend using [ruby-install] and [chruby]!
* Database initialization
* How to run the test suite
### Configuration
* Services (job queues, cache servers, search engines, etc.)
Examples show the case of Debian-based systems. <abbr title="Your Mileage May Vary">YMMV</abbr>
* Deployment instructions
#### NginX + Puma
* ...
Local development is setup to use Puma with sockets.
If you don't have `sudo` access, consider changing Puma configuration from:
`bind "unix://#{shared_dir}/sockets/puma.sock";` to: `bind "tcp://";`
And skip this step :)
See [doc/development/nginx.conf] for a sample developer configuration. With this
setup you should add an entry in your `/etc/hosts`:
``` shell
echo '' | sudo tee -a /etc/hosts
[doc/development/nginx.conf]: ../doc/development/nginx.conf
#### PostgreSQL + PostGIS
We use PostgreSQL 10. Enable PostGIS extensions (or ask your system administrator to do so).
`sudo apt install postgresql-10 postgis`
Your current database user should be authorized in PostgreSQL. If not, you should enable it:
``` shell
cat <<DB_ACCESS | sudo tee -a $PATH_TO_PG_HBA_CONF
In the above snippet...
| Replace | With...
| `$INCOMMON_API_DB_NAME` | your actual database name (e.g., `incommon-api`)
| `$INCOMMON_API_DB_USER` | your actual database user name (e.g., `rails`)
| `$PATH_TO_PG_HBA_CONF` | On Debian-based systems: `/etc/postgresql/10/main/pg_hba.conf`
Then reload PostgreSQL server: `sudo /etc/init.d/postgresql reload`
##### Loading the database
Please refer to [doc/].
[doc/]: ../doc/
### Testing
We recommend using Guard: `bundle exec guard`.
You can run the specification suite with: `bundle exec rspec`.
Please refer to [RSpec documentation] to run or write individual tests.
[RSpec documentation]:
### Services
Writing to the database **will** use Job queues running [Sidekiq].
### Deployment
- always use `db/structure.sql` and database import to get started. It will save
you some headaches.
- use sockets! They're faster and more secure.
- deploy version tags (`git tag -l | tail -1`)
- **always enable TLS**: the API assumes the connection to the server is
secure. Not doing so will leak API keys and authentication tokens. You've been
warned. [LetsEncrypt] gives you gratis SSL certificates.
## Contributing
We're a welcoming community. We expect every contributor to be respectful of
each other and the [IN COMMON Charter].
Our main development SCM goes to <>.
It is mirrored to [Gitlab] and [Github].
[IN COMMON Charter]:
Our development community gathers at <>.
### Reporting Security Issues
See <>
## Licensing
`incommon-api` Copyright © 2018 [IN COMMON Collective] and contributors.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <>.
See [LICENSE](../
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment