Skip to content

Commit

Permalink
containers: add containerfile and configs for the hub
Browse files Browse the repository at this point in the history
Signed-off-by: Siteshwar Vashisht <[email protected]>
  • Loading branch information
siteshwar committed Feb 15, 2024
1 parent d11a595 commit c75f61e
Show file tree
Hide file tree
Showing 5 changed files with 1,085 additions and 0 deletions.
60 changes: 60 additions & 0 deletions containers/configs/osh-hub-httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# TODO: Set a servername for staging and production servers.
# ServerName *
WSGISocketPrefix /var/run/wsgi

# LoadModule dumpio_module modules/mod_dumpio.so
# DumpIOInput On
# DumpIOOutput On
LogLevel debug
# ErrorLog "/opt/app-root/error_log"
# <IfModule mod_security2.c>
# # SecRequestBodyLimit 204800 # Set the desired limit in bytes
# SecRequestBodyLimit 1073741824
# </IfModule>

<VirtualHost *:8080>
# ServerAlias *
ServerAlias staging-openscanhub.apps.ocp.stg.fedoraproject.org
# WSGI handler
# WSGIDaemonProcess osh display-name=%{GROUP} locale='C.UTF-8'
# WSGIProcessGroup osh
WSGIScriptAlias / /usr/lib/python3.9/site-packages/osh/hub/osh-hub.wsgi


# needed for Apache 2.4
<Directory "/usr/lib/python3.9/site-packages/osh/hub">
Require all granted
</Directory>

# static stuff
Alias /static/ "/usr/lib/python3.9/site-packages/osh/hub/static/"
<Directory "/usr/lib/python3.9/site-packages/osh/hub/static/">
Options Indexes
IndexOptions FancyIndexing
</Directory>

<Location "/xmlrpc/kerbauth/">
AuthType GSSAPI
GssapiCredStore keytab:/etc/keytabs/service.keytab
AuthName "OpenScanHub XML-RPC Interface"
Require valid-user
</Location>

<Location "/auth/krb5login/">
AuthType GSSAPI
GssapiCredStore keytab:/etc/keytabs/service.keytab
AuthName "OpenScanHub WEB-UI Login"
Require valid-user
</Location>

# Result tarball or SRPMs generated by OpenScanHub workers may have very large size.
# Use a custom limit here to avoid scans to fail.
# This limit may have to increase over time.
# <Location "*">
# # Set maximum size of request body to 1GiB.
# SecRequestBodyLimit 1073741824
# # TODO: Verify if below line may have issues with backward compatibility.
# # Require valid-user
# </Location>

</VirtualHost>
Loading

0 comments on commit c75f61e

Please sign in to comment.