File: apache-freezer-api.template

package info (click to toggle)
freezer-api 13.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,880 kB
  • sloc: python: 15,656; sh: 389; makefile: 59
file content (28 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Listen %SERVICE_HOST%:%FREEZER_API_PORT%

# Placeholder to conditionally insert a 'Listen 127.0.0.1' directive when
# %SERVICE_HOST% is not already 127.0.0.1
%LOCAL_LISTEN%

<VirtualHost *:%FREEZER_API_PORT%>
    WSGIDaemonProcess freezer-api processes=2 threads=2 user=%USER% display-name=%{GROUP}
    WSGIProcessGroup freezer-api
    WSGIApplicationGroup freezer-api
    WSGIScriptAlias / %FREEZER_API_DIR%/freezer_api/cmd/wsgi.py

    <IfVersion >= 2.4>
      ErrorLogFormat "%M"
    </IfVersion>
    ErrorLog /var/log/%APACHE_NAME%/freezer-api.log
    LogLevel warn
    CustomLog /var/log/%APACHE_NAME%/freezer-api_access.log combined

    <Directory %FREEZER_API_DIR%/freezer_api>
      Options Indexes FollowSymLinks MultiViews
      Require all granted
      AllowOverride None
      Order allow,deny
      allow from all
      LimitRequestBody 102400
    </Directory>
</VirtualHost>