* Remove repository indexing from Dockerfile * Copy Elixir code from the context instead of cloning it from Github * Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile * Add docs for the new Dockerfile * Add an utility script that allows easier repository configuration * Add .dockerignore * Use relative paths in Docker section in README
24 lines
763 B
Text
24 lines
763 B
Text
<Directory /usr/local/elixir/http/>
|
|
Options +ExecCGI
|
|
AllowOverride None
|
|
Require all granted
|
|
SetEnv PYTHONIOENCODING utf-8
|
|
SetEnv LXR_PROJ_DIR /srv/elixir-data
|
|
</Directory>
|
|
<Directory /usr/local/elixir/api/>
|
|
SetHandler wsgi-script
|
|
Require all granted
|
|
SetEnv PYTHONIOENCODING utf-8
|
|
SetEnv LXR_PROJ_DIR /srv/elixir-data
|
|
</Directory>
|
|
AddHandler cgi-script .py
|
|
<VirtualHost *:80>
|
|
ServerName MY_LOCAL_IP
|
|
DocumentRoot /usr/local/elixir/http
|
|
WSGIScriptAlias /api /usr/local/elixir/api/api.py
|
|
AllowEncodedSlashes On
|
|
RewriteEngine on
|
|
RewriteRule "^/$" "/linux/latest/source" [R]
|
|
RewriteRule "^/(?!api|acp).*/(source|ident|search)" "/web.py" [PT]
|
|
RewriteRule "^/acp" "/autocomplete.py" [PT]
|
|
</VirtualHost>
|