Skip to content
Snippets Groups Projects
Commit aa872f0b authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Update README for ark.localhost

parent 4ada9478
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ Go to GitLab's [Applications settings](https://gitlab.com/profile/applications)
```
http://127.0.0.1:8000/api/v1/oauth/providers/gitlab/callback/
http://localhost:8000/api/v1/oauth/providers/gitlab/callback/
https://localhost/api/v1/oauth/providers/gitlab/callback/
http://ark.localhost:8000/api/v1/oauth/providers/gitlab/callback/
https://ark.localhost/api/v1/oauth/providers/gitlab/callback/
```
Once the application is created, GitLab will provide you with an application ID and a secret. Use the `local_settings.py` file to set them:
......@@ -61,7 +61,7 @@ GITLAB_APP_SECRET = "9d96d9d5b1addd7e7e6119a23b1e5b5f68545312bfecb21d1cdc6af22b8
### Local image server
Arkindex splits up image URLs in their image server and the image path. For example, a IIIF server at `http://iiif.irht.cnrs.fr/iiif/` and an image at `/Paris/JJ042/1.jpg` would be represented as an ImageServer instance holding one Image. Since Arkindex has a local IIIF server for image uploads and thumbnails, a special instance of ImageServer is required to point to this local server. In local developement, this server should be available at `https://localhost/iiif`. You will therefore need to create an ImageServer via the Django admin or the Django shell with this URL. To set the local server ID, you can use the `LOCAL_IMAGESERVER_ID` environment variable or set a custom setting in `local_settings.py`:
Arkindex splits up image URLs in their image server and the image path. For example, a IIIF server at `http://iiif.irht.cnrs.fr/iiif/` and an image at `/Paris/JJ042/1.jpg` would be represented as an ImageServer instance holding one Image. Since Arkindex has a local IIIF server for image uploads and thumbnails, a special instance of ImageServer is required to point to this local server. In local developement, this server should be available at `https://ark.localhost/iiif`. You will therefore need to create an ImageServer via the Django admin or the Django shell with this URL. To set the local server ID, you can use the `LOCAL_IMAGESERVER_ID` environment variable or set a custom setting in `local_settings.py`:
```
LOCAL_IMAGESERVER_ID = 999
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment