Running redmine on OpenBSD server

Added by Mike Clovis over 9 years ago

Hi all,
I am admittedly a novice ruby programmer, but an avid Redmine proponent! Having used Redmine for the last year in production, I would like to continue using it in the same manner, but with new start up company, we are using services of company that we do not have use all of the shell on OpenBSD server. We have checked out 0.7 branch and created database ,etc. Can not just launch webbrick. Was looking for any suggestions for best way to "host" redmine application (Mongrel, apache, etc???). On this shared shell system, we do have ways to accomplish certain ideas and any help would be appreciated. Thanks in advance from all. I really do understand java based applications, and apache so deployment scenarios such as webservers, tomcat etc are easily understandable.
Again thanks.

Replies (3)

RE: Running redmine on OpenBSD server - Added by Pavel Potcheptsov over 5 years ago

It is possible.
openbsd5.0 ngnix thin redmine 1.4.1
What we have:
  1. uname -rsvmp
    OpenBSD 5.0 GENERIC#43 i386 Intel(R) Pentium(R) 4 CPU 2.40GHz ("GenuineIntel" 686-class)
  2. pkg_info
    curl-7.21.7 get files from FTP, Gopher, HTTP or HTTPS servers
    femail-0.97p1 simple SMTP client
    femail-chroot-0.97p3 simple SMTP client for chrooted apache
    gettext-0.18.1p0 GNU gettext
    glib2-2.28.8p1 general-purpose utility library
    gmake-3.82 GNU make
    libgamin-0.1.10p4 file and directory monitoring system
    libiconv-1.13p2 character set conversion library
    libidn-1.22 internationalized string handling
    libslang-2.2.2 stack-based interpreter for terminal applications
    libxml-2.7.8p2 XML parsing library
    mc-4.7.5.2 free Norton Commander clone with many useful features
    mysql-client-5.1.54p0 multithreaded SQL database (client)
    mysql-server-5.1.54p9 multithreaded SQL database (server)
    nano-2.2.6 Pico editor clone with enhancements
    nginx-1.0.4 robust and small HTTP server and mail proxy server
    oniguruma-5.9.1p0 regular expressions library
    p5-Clone-0.31p1 recursively copy Perl datatypes
    p5-DBD-mysql-4.019 MySQL drivers for the Perl DBI
    p5-DBI-1.616 unified perl interface for database access
    p5-FreezeThaw-0.43p2 module for converting structures to strings and back
    p5-MLDBM-2.04 store multi-level hash structure in single-level tied hash
    p5-Net-Daemon-0.43p0 extension for portable daemons
    p5-Params-Util-1.00p2 utility to make parameter checking easier
    p5-PlRPC-0.2018p1 module for writing rpc servers and clients
    p5-SQL-Statement-1.33 sql parsing and processing
    pcre-8.12p0 perl-compatible regular expression library
    php-5.2.17p5 server-side HTML-embedded scripting language
    php-mysql-5.2.17p3 mysql database access extensions for php5
    ruby-1.8.7.352p1 object oriented script language with threads
    ruby-fastthread-1.0.7p2 optimized replacement for Ruby thread.rb primitives
    ruby-gems-1.3.7p2 package management framework for the Ruby language
    ruby-iconv-1.8.7.352p1 libiconv interface for ruby
    ruby-mysql-2.8.1p6 access a MySQL database from Ruby
    ruby-rack-1.2.2 modular Ruby webserver interface
    ruby-rake-0.8.7p2 ruby make
    unzip-6.0p0 extract, list & test files in a ZIP archive
    zip-3.0 create/update ZIP files compatible with PKZip(tm)
  3. bundle show
    Gems included by the bundle: * actionmailer (2.3.14) * actionpack (2.3.14) * activerecord (2.3.14) * activeresource (2.3.14) * activesupport (2.3.14) * bundler (1.1.3) * coderay (1.0.6) * daemons (1.1.8) * eventmachine (0.12.10) * fastercsv (1.5.4) * i18n (0.4.2) * mysql (2.8.1) * net-ldap (0.3.1) * rack (1.1.3) * rails (2.3.14) * rake (0.9.2.2) * ruby-openid (2.1.8) * thin (1.3.1) * tzinfo (0.3.33)

thin.conf
---
address: 127.0.0.1
chdir: /var/www/redmine
pid: /var/run/thin/thin.pid
#socket: /var/run/thin/thin.sock
log: /var/www/redmine/log/thin.log
environment: production
servers: 2
port: 3000
wait: 30
timeout: 30
max_conns: 1024
max_persistent_conns: 512
require: []
daemonize: true
user: www
group: www

nginx.conf
---
upstream thin {
server 127.0.0.1:3000;
server 127.0.0.1:3001; }

server {
  1. listen 443;
    listen 80;
  2. include /etc/nginx/ssl.conf;
    server_name bsd60;
    gzip on;
    gzip_min_length 1100;
    gzip_buffers 4 32k;
    #gzip_proxied any;
    #gzip_types text/plain text/html text/xml application/xml application/x-javascript text/javascript text/css text/json;
    #gzip_comp_level 8;
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 75;
    location ~ ^/$ {
    if (-f /index.html) {
    rewrite (.*) /index.html last;
    }
    proxy_pass http://thin;
    }
    location /files {
    root /var/www/redmine/files;
    expires 30d;
    }
    location ~ .(html|css|js) {
    root /var/www/redmine/public;
    expires 30d;
    access_log off;
    }
    location / {
    root /var/www/redmine;
    proxy_pass http://thin;
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    client_max_body_size 200m;
  3. expires 5m;
}
location = /stat {
stub_status on;
access_log off;
}
}

RE: Running redmine on OpenBSD server - Added by Nathan Eddle over 5 years ago

That's very handy. Thanks for posting.

(1-3/3)