Skip to content

Commit

Permalink
allow custom service configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Jun 10, 2024
1 parent 2f0441d commit 4078ab5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
zip ../${{ steps.repository_info.outputs.ID }}-${{steps.repository_info.outputs.VERSION}}.zip -r *
- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.2.1
uses: svenstaro/upload-release-action@v2
if: ${{ steps.repository_info.outputs.NEEDS_RELEASE == 'true'}}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions src/__xtz/assets/node-tunnel.template.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ExecStart=/usr/bin/ssh -NT -p {{{model.REMOTE_SSH_PORT}}} \
-o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o ExitOnForwardFailure=yes \
-L localhost:{{{model.LOCAL_RPC_PORT}}}:{{{model.REMOTE_RPC_ENDPOINT}}} {{{model.REMOTE_NODE}}}

{{#configuration.SERVICE_CONFIGURATION_NODE_TUNNEL__ARRAY}}
{{{key}}}={{{value}}}
{{/configuration.SERVICE_CONFIGURATION_NODE_TUNNEL__ARRAY}}

Restart=always
[Install]
WantedBy=multi-user.target
4 changes: 4 additions & 0 deletions src/__xtz/assets/signer-tunnel.template.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ExecStart=/usr/bin/ssh -NT -p {{{model.REMOTE_SSH_PORT}}} \
-o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o ExitOnForwardFailure=yes \
-R {{{model.SIGNER_ENDPOINT}}}:localhost:{{{model.REMOTE_SIGNER_PORT}}} {{{model.REMOTE_NODE}}}

{{#configuration.SERVICE_CONFIGURATION_SIGNER_TUNNEL__ARRAY}}
{{{key}}}={{{value}}}
{{/configuration.SERVICE_CONFIGURATION_SIGNER_TUNNEL__ARRAY}}

Restart=always
[Install]
WantedBy=multi-user.target
4 changes: 4 additions & 0 deletions src/__xtz/assets/signer.template.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ ExecStart={{{ROOT_DIR}}}/bin/signer launch http signer -a {{{model.SIGNER_ADDR}}
{{{key}}}={{{value}}}
{{/model.SERVICE_CONFIGURATION_SIGNER__ARRAY}}

{{#configuration.SERVICE_CONFIGURATION_SIGNER__ARRAY}}
{{{key}}}={{{value}}}
{{/configuration.SERVICE_CONFIGURATION_SIGNER__ARRAY}}

[Install]
WantedBy=default.target
2 changes: 1 addition & 1 deletion src/specs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "xtz.signer",
"version" : "0.23.2+20.0",
"version" : "0.23.3+20.0",
"dependencies": [
{ "id":"xtz.base" }
]
Expand Down

0 comments on commit 4078ab5

Please sign in to comment.