Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose collection API #565

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 40 additions & 36 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
{
"name": "p2b_compliance",
"services": {
"repository": "https://github.com/OpenTermsArchive/p2b-compliance-declarations.git",
"declarationsPath": "./declarations"
},
"recorder": {
"versions": {
"storage": {
"git": {
"snapshotIdentiferTemplate": "https://github.com/OpenTermsArchive/p2b-compliance-snapshots/commit/%SNAPSHOT_ID",
"repository": "[email protected]:OpenTermsArchive/p2b-compliance-versions.git",
"path": "./data/versions"
"@opentermsarchive/engine": {
"recorder": {
"versions": {
"storage": {
"git": {
"snapshotIdentiferTemplate": "https://github.com/OpenTermsArchive/p2b-compliance-snapshots/commit/%SNAPSHOT_ID",
"repository": "[email protected]:OpenTermsArchive/p2b-compliance-versions.git",
"path": "./data/versions"
}
}
},
"snapshots": {
"storage": {
"git": {
"repository": "[email protected]:OpenTermsArchive/p2b-compliance-snapshots.git",
"path": "./data/snapshots"
}
}
}
},
"snapshots": {
"storage": {
"git": {
"repository": "[email protected]:OpenTermsArchive/p2b-compliance-snapshots.git",
"path": "./data/snapshots"
}
"fetcher": {
"language": "en"
},
"notifier": {
"sendInBlue": {
"updatesListId": 861,
"updateTemplateId": 56
}
},
"logger": {
"timestampPrefix": false
},
"tracker": {
"githubIssues": {
"repository": "OpenTermsArchive/p2b-compliance-declarations"
}
},
"dataset": {
"title": "p2b-compliance",
"versionsRepositoryURL": "https://github.com/OpenTermsArchive/p2b-compliance-versions"
},
"collection-api": {
"port": 3000,
"basePath": "/collection-api"
}
},
"fetcher": {
"language": "en"
},
"notifier": {
"sendInBlue": {
"updatesListId": 861,
"updateTemplateId": 56
}
},
"tracker": {
"githubIssues": {
"repository": "OpenTermsArchive/p2b-compliance-declarations"
}
},
"dataset": {
"title": "p2b-compliance",
"versionsRepositoryURL": "https://github.com/OpenTermsArchive/p2b-compliance-versions"
}
}
11 changes: 11 additions & 0 deletions deployment/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$ANSIBLE_VAULT;1.1;AES256
31653865383665396337326536373163656630396636623563363931393264323063656365376338
3335636633323337306666353466363434666131346539380a333936613732333539363934333861
65373437363438613435616235343238646661303735303731386633616462326163666132666239
3233363734326130630a373030363361613532323861636336373839643863666666303636306436
64643934383939326261393236373537356437306536343732363262626464663731363338343766
31326161346663303761326139646133393163306532386435353566356138613736326135373739
36643364376266363666663064666464653361623230633233353866303333393763373332393532
31323539623138656133343239373138363236336232333232386534616664306363306262656139
36376663316238313961363235363562343964363334376535376539383266323562653633343264
3430636161333835326265656666366631656465623961643663
7 changes: 4 additions & 3 deletions deployment/inventory.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
all:
hosts:
vps-463f0baf.vps.ovh.net:
ansible_user: ota
ed25519_fingerprint: AAAAC3NzaC1lZDI1NTE5AAAAIDOrkEl2aR2gJe0XmLy4j+0/51G/kAlkupfU4S2Qv0dJ
198.244.153.104:
ansible_user: debian
ed25519_fingerprint: AAAAC3NzaC1lZDI1NTE5AAAAIITN8hTCst7+6mHNzeo465crCZwHrc/SzUL1410mb9Lv
ota_source_repository: https://github.com/OpenTermsArchive/p2b-compliance-declarations.git
14 changes: 14 additions & 0 deletions deployment/pm2.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
apps: [
{
name: 'ota-collection-api',
script: 'npm',
args: 'run start:collection-api',
min_uptime: '10s',
max_restarts: 10,
restart_delay: 1000,
exponential_backoff_restart_delay: true,
log_date_format: "YYYY-MM-DDTHH:mm:ssZ"
}
],
};
2 changes: 1 addition & 1 deletion deployment/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
collections:
- name: opentermsarchive.deployment
version: 0.0.11
version: 2.0.2
Loading
Loading