-
-
Save jcarrano/f34b51d1f998a1314908fa8d19b12dda to your computer and use it in GitHub Desktop.
Trac setup for Ubuntu
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
#/etc/nginx/sites-available/trac | |
upstream trac { | |
server 127.0.0.1:3050; | |
server 127.0.0.1:3051; | |
server 127.0.0.1:3052; | |
server 127.0.0.1:3053; | |
} | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
#server_name live.trachosts.com live; | |
access_log /var/log/nginx/trac.access.log main; | |
error_log /var/log/nginx/trac.error_log info; | |
location ~ /(.*?)/chrome/site/ { | |
rewrite /(.*?)/chrome/site/(.*) /$1/htdocs/$2 break; | |
root /var/www/trac-default; | |
} | |
location / { | |
proxy_pass http://trac; | |
include /etc/nginx/proxy.conf; | |
# if your system doesn't have the proxy.conf file, add the following two lines to get redirects working: | |
# proxy_redirect on; | |
# proxy_set_header Host $host; | |
} | |
} |
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
#/etc/systemd/system/tracd.target | |
[Unit] | |
Description=Trac Standalone Daemon | |
Documentation=https://trac.edgewall.org/wiki/TracStandalone | |
After=network.target remote-fs.target nss-lookup.target | |
Requires=tracd@3050.service | |
Requires=tracd@3051.service | |
Requires=tracd@3052.service | |
Requires=tracd@3053.service |
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
# /etc/systemd/system/tracd@.service | |
[Unit] | |
Description=Single trac instance | |
StopWhenUnneeded=yes | |
[Service] | |
Type=simple | |
ExecStart=/var/www/trac/bin/tracd -b localhost -p %i --protocol=http --basic-auth="trac-default,/var/www/trac-default/htpasswd,Restricted" -s /var/www/trac-default | |
User=tracd | |
Group=tracd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment