Skip to content

Commit

Permalink
libris.local => libris.kb.se.local; id.local => id.kb.se.local
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Aug 10, 2023
1 parent d51481a commit c54af16
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ cp secret.properties.in secret.properties
# In secret.properties, set:
# - elasticCluster to whatever you set cluster.name to in the Elasticsearch configuration above.
vim secret.properties
# Make sure libris.localhost points to 127.0.0.1
echo '127.0.0.1 libris.localhost' | sudo tee -a /etc/hosts
# Make sure libris.kb.se.localhost points to 127.0.0.1
echo '127.0.0.1 libris.kb.se.localhost' | sudo tee -a /etc/hosts
```

### Importing test data
Expand Down Expand Up @@ -242,7 +242,7 @@ and the id.kb.se app running on port 3000, but they won't work yet. Next, edit

```
<VirtualHost *:5000>
ServerName libris.localhost
ServerName libris.kb.se.localhost
ProxyRequests Off
ProxyPreserveHost On
Expand All @@ -252,12 +252,12 @@ and the id.kb.se app running on port 3000, but they won't work yet. Next, edit
ProxyPreserveHost Off
RewriteCond %{HTTP_ACCEPT} (text/html|application/xhtml|\*/\*|^$)
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ([^/]+)$ http://id.localhost:5000/$1 [P]
RewriteRule ([^/]+)$ http://id.kb.se.localhost:5000/$1 [P]
</LocationMatch>
<Location /_nuxt>
ProxyPreserveHost Off
ProxyPass http://id.localhost:5000/_nuxt
ProxyPass http://id.kb.se.localhost:5000/_nuxt
</Location>
ProxyPass /katalogisering http://localhost:8080/katalogisering
Expand All @@ -278,7 +278,7 @@ and the id.kb.se app running on port 3000, but they won't work yet. Next, edit
</VirtualHost>
<VirtualHost *:5000>
ServerName id.localhost
ServerName id.kb.se.localhost
ProxyRequests Off
ProxyPreserveHost On
Expand Down Expand Up @@ -326,8 +326,8 @@ Listen 5000
Add these lines to `/etc/hosts`:

```
127.0.0.1 libris.localhost
127.0.0.1 id.localhost
127.0.0.1 libris.kb.se.localhost
127.0.0.1 id.kb.se.localhost
```

Make sure some necessary Apache modules are enabled:
Expand All @@ -342,9 +342,9 @@ Now (re)start Apache:
systemctl restart apache2
```

You should now be able to visit http://id.localhost:5000, and use the cataloging client
on http://libris.localhost:5000/katalogisering/. The XL API itself is available on
http://libris.localhost:5000 (proxied via Apache), or directly on http://localhost:8180.
You should now be able to visit http://id.kb.se.localhost:5000, and use the cataloging client
on http://libris.kb.se.localhost:5000/katalogisering/. The XL API itself is available on
http://libris.kb.se.localhost:5000 (proxied via Apache), or directly on http://localhost:8180.

## Maintenance

Expand Down
2 changes: 1 addition & 1 deletion gui-whelktool/cli_run_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -uex

username=$(whoami)

java -DsecretBaseUri=http://libris.localhost:5000/ -DsecretSqlUrl=jdbc:postgresql://$username:_XL_PASSWORD_@localhost/whelk_dev -DsecretElasticHost=localhost -DsecretElasticCluster=elasticsearch_$username -DsecretElasticIndex=whelk_dev -DsecretApplicationId=https://libris.kb.se/ -DsecretSystemContextUri=https://id.kb.se/sys/context/kbv -DsecretLocales=sv,en -DsecretTimezone=Europe/Stockholm -jar build/libs/gui-whelktool.jar
java -DsecretBaseUri=http://libris.kb.se.localhost:5000/ -DsecretSqlUrl=jdbc:postgresql://$username:_XL_PASSWORD_@localhost/whelk_dev -DsecretElasticHost=localhost -DsecretElasticCluster=elasticsearch_$username -DsecretElasticIndex=whelk_dev -DsecretApplicationId=https://libris.kb.se/ -DsecretSystemContextUri=https://id.kb.se/sys/context/kbv -DsecretLocales=sv,en -DsecretTimezone=Europe/Stockholm -jar build/libs/gui-whelktool.jar
2 changes: 1 addition & 1 deletion marc_export/integtest/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json
import xml.etree.ElementTree as ET

base_uri = 'http://libris.localhost:5000/'
base_uri = 'http://libris.kb.se.localhost:5000/'
export_url = 'http://localhost:8580/marc_export/'

## Util-stuff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ TOKEN=$(curl -s -X POST -d 'client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&gr
curl -v -XPOST 'http://localhost:8180/_reproduction' -H 'Content-Type: application/ld+json' -H "Authorization: Bearer $TOKEN" -H 'XL-Active-Sigel: S' --data-binary @- << EOF
{
"@type": "Electronic",
"reproductionOf": { "@id": "http://libris.localhost:5000/q822pht24j3ljjr#it" },
"reproductionOf": { "@id": "http://libris.kb.se.localhost:5000/q822pht24j3ljjr#it" },
"production": [
{
"@type": "Reproduction",
"agent": { "@id": "http://libris.localhost:5000/jgvxv7m23l9rxd3#it" },
"agent": { "@id": "http://libris.kb.se.localhost:5000/jgvxv7m23l9rxd3#it" },
"place": { "@type": "Place", "label": "Stockholm" },
"date": "2021"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@graph": [
{
"@id": "http://libris.localhost:5000/00nj5pg324pd3kjp",
"@id": "http://libris.kb.se.localhost:5000/00nj5pg324pd3kjp",
"sameAs": [
{
"@id": "https://id.kb.se/vocab/context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@graph": [
{
"@id": "http://libris.localhost:5000/00nj5pg324f356g2",
"@id": "http://libris.kb.se.localhost:5000/00nj5pg324f356g2",
"sameAs": [
{
"@id": "https://id.kb.se/vocab/display.jsonld"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@id": "http://libris.localhost:5000/n602lbw018zh88k#it",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#it",
"@type": "Electronic",
"extent": [
{
Expand All @@ -19,7 +19,7 @@
}
],
"instanceOf": {
"@id": "http://libris.localhost:5000/n602lbw018zh88k#work",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#work",
"@type": "Text",
"subject": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@id": "http://libris.localhost:5000/n602lbw018zh88k#it",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#it",
"@type": "Electronic",
"extent": [
{
Expand All @@ -19,7 +19,7 @@
}
],
"instanceOf": {
"@id": "http://libris.localhost:5000/n602lbw018zh88k#work",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#work",
"@type": "Text",
"language": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@id": "http://libris.localhost:5000/n602lbw018zh88k#it",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#it",
"@type": "Electronic",
"sameAs": [
{
Expand All @@ -13,7 +13,7 @@
}
],
"instanceOf": {
"@id": "http://libris.localhost:5000/n602lbw018zh88k#work",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#work",
"@type": "Text",
"language": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@id": "http://libris.localhost:5000/n602lbw018zh88k#it",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#it",
"@type": "Electronic",
"extent": [
{
Expand All @@ -26,7 +26,7 @@
}
],
"instanceOf": {
"@id": "http://libris.localhost:5000/n602lbw018zh88k#work",
"@id": "http://libris.kb.se.localhost:5000/n602lbw018zh88k#work",
"@type": "Text",
"hasPart": [
{
Expand Down
2 changes: 1 addition & 1 deletion whelktool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def data =
"@id": "TEMPID#it",
"@type": "Item",
"heldBy": ["@id": "https://libris.kb.se/library/Utb1"],
"itemOf": ["@id": "http://libris.localhost:5000/wf7mw1h74fkt88r#it"]
"itemOf": ["@id": "http://libris.kb.se.localhost:5000/wf7mw1h74fkt88r#it"]
]
]]
Expand Down
2 changes: 1 addition & 1 deletion whelktool/scripts/examples/create.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def data =
"@id": "TEMPID#it",
"@type": "Item",
"heldBy": ["@id": "https://libris.kb.se/library/Utb1"],
"itemOf": ["@id": "http://libris.localhost:5000/wf7mw1h74fkt88r#it"]
"itemOf": ["@id": "http://libris.kb.se.localhost:5000/wf7mw1h74fkt88r#it"]
]
]]

Expand Down

0 comments on commit c54af16

Please sign in to comment.