Would someone please help guide me, step by step as to what to do to get this working?
Of course I have looked at that. I find the information unclear. Can you help further?
/david
--
You received this message because you are subscribed to a topic in the Google Groups "Trac Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/trac-users/xvJTR9ta57I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to trac-users+...@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Single-Site tracd Startup: will not work with Trac before version 0.10:
tracd -d -p 3050 --pidfile=/var/live/run/tracd.3051 --protocol=http -s /var/live/trac/telecardia
"
what is a pidfile? and do I need to create that folder that has tracd.3051?
Also where it has the Sample /etc/nginx/nginx.conf is, I dont udnerstand why you would add it to the nginx.conf file. Wouldnt this go to the sites-available/ sites-enabled/ folder?
I think my question is, where do I need to edit in order to see the trac project page through nginx?
Again I am really, really appreciative of the help if any, anyone could provide. I have spent days trying to figure this out and I am basically stuck.
Having a quick look at the tutorials I said I have done, I believe would help someone see where im at with my setup. I have basically been following those tutorials.
Thanks for any help you could provide.
/david
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
/davidThanks Paul. its been an interesting ride. Tutorials can teach you to do stuff you don't understand and eventually there comes a point where you have to understand each part. I guess I was getting overwhelmed by the huge amoutn of things I don't know piling up.Seems to me the TracNginxRecipe page could use some love. Once I figure stuff out, I'll suggest tweaks to that page. I know there are probably lots of people who want and need this.
If we could eventually assemble a solid page describing how to setup Nginx it could be moved into the pages that are distributed with Trac.
user nginx nginx;
worker_processes auto;
error_log syslog:server=unix:/dev/log error;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 2k;
request_pool_size 4k;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
output_buffers 1 32k;
postpone_output 1460;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 75 20;
ignore_invalid_headers on;
server {
listen 80;
server_name project;
# Rewrite to force SSL:
#location / {
# rewrite ^/(.*)$ https://project/$1 redirect;
#}
location / {
root /mnt/data/trac/start;
}
location /trac-pro {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/trac-pro.sock;
uwsgi_param SCRIPT_NAME /trac-pro;
uwsgi_modifier1 30;
}
location /trac-test {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/trac-test.sock;
uwsgi_param SCRIPT_NAME /trac-test;
uwsgi_modifier1 30;
}
}
server {
listen 443;
server_name project;
root /mnt/data/trac;
ssl on;
ssl_certificate /etc/ssl/nginx/nginx.crt;
ssl_certificate_key /etc/ssl/nginx/nginx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:AES128:AES256:RC4-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK;
ssl_dhparam /etc/ssl/nginx/nginx.dh4096.pem;
keepalive_timeout 70;
add_header Front-End-Https on;
location / {
root /mnt/data/trac/start;
}
location /trac-pro {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/trac-pro.sock;
uwsgi_param SCRIPT_NAME /trac-pro;
uwsgi_modifier1 30;
}
location /trac-test {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/trac-test.sock;
uwsgi_param SCRIPT_NAME /trac-test;
uwsgi_modifier1 30;
}
# different approaches for serving static content by nginx directly:
#location ~ /(.*?)/chrome/site/ {
# rewrite /(.*?)/chrome/site/(.*) /$1/htdocs/$2 break;
# root /mnt/data/trac/projects;
#}
#location ~ /(.*?)/chrome/common/ {
# rewrite /(.*?)/chrome/common/(.*) /$1/htdocs/$2 break;
# root /mnt/data/trac/projects;
#}
#location /mnt/data/trac/projects/trac-pro/htdocs {
# internal;
# alias /mnt/data/trac/projects/trac-pro/htdocs;
#}
#location /mnt/data/trac/projects/trac-pro/files {
# internal;
# alias /mnt/data/trac/projects/trac-pro/files;
#}
#location /*/chrome/common {
# alias /usr/lib64/python2.7/site-packages/trac/htdocs;
#}
#location ~ /(?<project>.+)/chrome/site {
# alias /mnt/data/trac/projects/$project/htdocs/;
#}
#ocation /trac/files {
# alias /mnt/data/trac/project/files;
#
#ocation /trac/trac-test/login {
# auth_basic_user_file /mnt/data/trac/projects/trac-test/trac.htpasswd;
# auth_basic "Login for trac-test";
#
}
}
[uwsgi]
plugins = python27
chown-socket = trac:nginx
uid = trac
gid = trac
workers = 6
socket = /run/uwsgi/%n.sock
env = TRAC_ENV=/mnt/data/trac/projects/trac-pro
env = PYTHON_EGG_CACHE=/mnt/data/trac/.python-eggs
module = trac.web.main
callable = dispatch_request