Skip to content

Commit

Permalink
fix(templates): remove whitespaces (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbbirkisson authored Aug 22, 2024
1 parent 6919782 commit c0bd908
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/systemd/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ server {

location / {
proxy_pass http://unix:/storage/spis/data/spis.sock;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
Expand Down
1 change: 0 additions & 1 deletion examples/systemd/spis.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Environment="SPIS_PROCESSING_RUN_ON_START=false"
Environment="SPIS_API_MEDIA_PATH=/assets/media"
Environment="SPIS_API_THUMBNAIL_PATH=/assets/thumbnails"
Environment="SPIS_SERVER_SOCKET=/storage/spis/data/spis.sock"

Environment="SPIS_FEATURE_FAVORITE=true"
Environment="SPIS_FEATURE_ARCHIVE=true"
Environment="RUST_LOG=error,spis=info"
Expand Down
4 changes: 2 additions & 2 deletions templates/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ server {
location / {
{%- if let Some(address) = config.listener.server_address %}
proxy_pass http://{{ address }};
{% else if let Some(socket) = config.listener.server_socket %}
{%- else if let Some(socket) = config.listener.server_socket %}
proxy_pass http://unix:{{ socket }};
{% else %}
{%- else %}
{{ self::validate_listener(config) }}
{%- endif %}
proxy_http_version 1.1;
Expand Down
4 changes: 2 additions & 2 deletions templates/config/systemd.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Environment="SPIS_API_MEDIA_PATH={{ config.api_media_path }}"
Environment="SPIS_API_THUMBNAIL_PATH={{ config.api_thumbnail_path }}"
{%- if let Some(address) = config.listener.server_address %}
Environment="SPIS_SERVER_ADDRESS={{ address }}"
{% else if let Some(socket) = config.listener.server_socket %}
{%- else if let Some(socket) = config.listener.server_socket %}
Environment="SPIS_SERVER_SOCKET={{ socket }}"
{% else %}
{%- else %}
{{ self::validate_listener(config) }}
{%- endif %}
Environment="SPIS_FEATURE_FAVORITE={{ config.feature_favorite }}"
Expand Down

0 comments on commit c0bd908

Please sign in to comment.