API UPDATE FIRST
This commit is contained in:
62
serverConf/default-ssl.conf
Normal file
62
serverConf/default-ssl.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost _default_:443>
|
||||
ServerAdmin webmaster@localhost
|
||||
ServerName 192.168.28.32
|
||||
|
||||
DocumentRoot /home/turingvideo/dist/localApp
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
|
||||
ProxyPass /api/ "http://127.0.0.1:8000/api/"
|
||||
ProxyPassReverse /api/ "http://127.0.0.1:8000/api/"
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
RewriteRule ^/ws/event/(.*)$ ws://127.0.0.1:8080/ws/event/$1 [P,L]
|
||||
|
||||
# RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||
# RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
# RewriteRule ^/ws/(\d+)(/?.*)$ ws://127.0.0.1:$1$2 [P,L]
|
||||
|
||||
# ProxyPass /ws/ "ws://127.0.0.1:8080/ws/" upgrade=websocket
|
||||
# ProxyPassReverse /ws/ "ws://127.0.0.1:8080/ws/"
|
||||
|
||||
# ProxyPassMatch ^/ws/(\d+)/.*$ ws://127.0.0.1:$1/ upgrade=websocket
|
||||
# ProxyPassReverse ^/ws/(\d+)/.*$ ws://127.0.0.1:$1/
|
||||
|
||||
# ProxyPreserveHost On
|
||||
# RequestHeader set X-Forwarded-Proto "https"
|
||||
# RequestHeader set X-Forwarded-Host "192.168.28.32"
|
||||
|
||||
# ProxyPass /media/ "http://127.0.0.1:8000/media/"
|
||||
# ProxyPassReverse /media/ "http://127.0.0.1:8000/media/"
|
||||
|
||||
<Directory /home/turingvideo/dist/localApp>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^ - [L]
|
||||
RewriteRule ^ index.html [L]
|
||||
</Directory>
|
||||
|
||||
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||
SSLOptions +StdEnvVars
|
||||
</FilesMatch>
|
||||
<Directory /usr/lib/cgi-bin>
|
||||
SSLOptions +StdEnvVars
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user