Skip to content

Commit

Permalink
Stop injecting python code in the configuration
Browse files Browse the repository at this point in the history
Instead of passing the api main script through a secret, use the one
installed in the container.

Also reduce the number of processes of the api running from 8 to 2 (one
process for the hearbeat and the other to listen to requests).
  • Loading branch information
cescgina committed Jan 29, 2025
1 parent b9599e7 commit 1e9466d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 54 deletions.
4 changes: 2 additions & 2 deletions templates/watcher/config/10-watcher-wsgi-main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

## WSGI configuration
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess {{ $endpt }} display-name={{ $endpt }} group=watcher processes=8 threads=1 user=watcher
WSGIDaemonProcess {{ $endpt }} display-name={{ $endpt }} group=watcher processes=2 threads=1 user=watcher
WSGIProcessGroup {{ $endpt }}
WSGIScriptAlias / "/var/www/cgi-bin/watcher/main"
WSGIScriptAlias / "/usr/bin/watcher-api-wsgi"
</VirtualHost>
{{ end }}
{{ end }}
52 changes: 0 additions & 52 deletions templates/watcher/config/main

This file was deleted.

0 comments on commit 1e9466d

Please sign in to comment.