Remotely/Utilities/Example_Apache_Config.txt
Jared Goodwin 3ef4cdf81a
Extract remote control functionality into separate library. (#539)
* Convert server to new single-file startup model.

* Add remote control implementations.

* Implement IViewerAuthorizer.

* Update hub endpoints.

* Implement HubEventHandler.

* Implement ViewerHubDataProvider.

* Implement page data provider.

* Implement RCL and refactor.

* Update submodule.

* Replace submodule with NuGet.

* Update copy URL.

* Update NuGet.

* Remove deprecated WebRTC.

* Remove deprecated WebRTC.

* Update Immense.RemoteControl

* Building out desktop projects.

* Bring more services into submodule.

* Update submodule.

* Update submodule.

* Refactoring for module.

* Update submodule.

* Update submodule

* Got Windows desktop app running.

* Refactor for submodule changes.

* FIx unattended session start.

* Switch desktop app out of console mode.

* Fix tests.

* Update publishing.

* Remove ClickOnce middleware.

* Remove ClickOnce remnants.

* Update submodule

* Add some logging.

* Update Linux path.

* Update submodule.

* Add cleanup service for unattended sessions that failed to start.

* Update submodule.

* Fix chat.

* Add ValidateExecutableReferencesMatchSelfContained property.

* Add other submodule projects.  Align checkbox.

* Update submodule.  Reduce deserialization in the browser, resulting in faster renders.

* Update submodule.

* Update submodule.

* Update submodule.

* Update submodule.

* Add orgId back for branding.

* Get branding loading in desktop apps.

* Update submodule.

* Create log dir.

* Refactor version check on config page.

* Update submodule.

* Update submodule.

* Change submodule URL.

* Correct namespace.

* Update submodule.

* Checkout submodules recursively.
2022-12-23 06:39:12 -08:00

48 lines
1.4 KiB
ApacheConf

<IfModule mod_ssl.c>
<VirtualHost *.443>
ServerName {FQDN}
ServerAdmin {Admin Email}
#Forward once Websocket Connection has been upgraded.
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:5000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:5000/$1 [P,L]
ProxyPreserveHost On
#Proxy Requests to Remotely Server
<LocationMatch "/">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<Location "/hubs/user">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</Location>
<LocationMatch "/hubs/service">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<LocationMatch "/hubs/viewer">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<LocationMatch "/hubs/desktop">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile {Path to fullchain.pem}
SSLCertificateKeyFile {Path to key.pem}
Include /etc/letsencrypt/options-ssl-apache.conf #Change this to wherever your apache options for LE are, or ignore if you don't use LE
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</IfModule>