Skip to content

Commit

Permalink
Add iris rate limit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hialus committed Oct 8, 2023
1 parent 4a5a6f1 commit c2d2b39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ artemis_eureka_instance_id: "{{ node_id }}"
#iris:
# url:
# secret:
# rate_limit:
# rate_limit_timeframe_hours:

##############################################################################
# Auto-generated Variables - No not alter!
Expand Down
6 changes: 6 additions & 0 deletions roles/artemis/templates/application-prod.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ artemis:
iris:
url: {{ iris.url }}
secret-token: {{ iris.secret }}
{% if iris.rate_limit is defined and iris.rate_limit is not none %}
rate-limit: {{ iris.rate_limit }}
{% endif %}
{% if iris.rate_limit_timeframe_hours is defined and iris.rate_limit_timeframe_hours is not none %}
rate-limit-timeframe-hours: {{ iris.rate_limit_timeframe_hours }}
{% endif %}
{% endif %}

jhipster:
Expand Down
6 changes: 6 additions & 0 deletions roles/artemis/templates/artemis.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ ARTEMIS_APOLLON_CONVERSIONSERVICEURL='{{ apollon_url }}'
{% if iris is defined and iris is not none %}
ARTEMIS_IRIS_URL='{{ iris.url }}'
ARTEMIS_IRIS_SECRETTOKEN='{{ iris.secret }}'
{% if iris.rate_limit is defined and iris.rate_limit is not none %}
ARTEMIS_IRIS_RATELIMIT='{{ iris.rate_limit }}'
{% endif %}
{% if iris.rate_limit_timeframe_hours is defined and iris.rate_limit_timeframe_hours is not none %}
ARTEMIS_IRIS_RATELIMITTIMEFRAMEHOURS='{{ iris.rate_limit_timeframe_hours }}'
{% endif %}
{% endif %}
ARTEMIS_SCHEDULING_DATAEXPORTCREATIONTIME = '{{ artemis_scheduling_data_export_creation_time }}'
ARTEMIS_SCHEDULING_PROGRAMMINGEXERCISESCLEANUPTIME = '{{ artemis_scheduling_programming_exercises_cleanup_time }}'
Expand Down

0 comments on commit c2d2b39

Please sign in to comment.