Created
January 17, 2021 06:40
-
-
Save CenoX/ec2451eab113ba2b2e66105e274993ac to your computer and use it in GitHub Desktop.
Run Xcode Server on HTTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the default Xcode Server Apache configuration file. | |
# This file supports Apache 2.4 running in macOS. | |
# This configuration allows you run Xcode Server on *:80/xcode on your machine | |
# which is useful when you run Xcode Server on reverse proxy. | |
<VirtualHost *:80> | |
<IfModule !mod_deflate.c> | |
LoadModule deflate_module libexec/apache2/mod_deflate.so | |
</IfModule> | |
<IfModule !mod_proxy.c> | |
LoadModule proxy_module libexec/apache2/mod_proxy.so | |
</IfModule> | |
<IfModule !mod_proxy_http.c> | |
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so | |
</IfModule> | |
Alias /xcode/internal/static/ "/Library/Developer/XcodeServer/CurrentXcodeSymlink/Contents/Developer/usr/share/xcs/xcswebui/" | |
AliasMatch ^/xcode/bigscreen "/Library/Developer/XcodeServer/CurrentXcodeSymlink/Contents/Developer/usr/share/xcs/xcswebui/bigscreen/index.html" | |
AliasMatch ^/xcode "/Library/Developer/XcodeServer/CurrentXcodeSymlink/Contents/Developer/usr/share/xcs/xcswebui/webui/index.html" | |
<Directory "/Library/Developer/XcodeServer/CurrentXcodeSymlink/Contents/Developer/usr/share/xcs/xcswebui/"> | |
Options +FollowSymLinks | |
AllowOverride None | |
Require all granted | |
<IfModule mod_deflate.c> | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript | |
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript application/dx-javascript | |
AddOutputFilterByType DEFLATE application/x-httpd-php | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|zip|gz)$ no-gzip dont-vary | |
Header append Vary User-Agent env=!dont-vary | |
</IfModule> | |
</Directory> | |
<IfModule mod_proxy.c> | |
ProxyPass /xcode/internal/api http://127.0.0.1:20300/api retry=0 timeout=30 | |
ProxyPassReverse /xcode/internal/api http://127.0.0.1:20300/api | |
ProxyPass /xcode/internal/socket.io http://127.0.0.1:20300/socket.io retry=0 timeout=30 | |
ProxyPassReverse /xcode/internal/socket.io http://127.0.0.1:20300/socket.io | |
</IfModule> | |
<Directory "/Library/Developer/XcodeServer"> | |
Options +FollowSymLinks +ExecCGI -SymLinksIfOwnerMatch | |
Require all granted | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment