Mailinglist Archive: opensuse-buildservice (225 mails)

< Previous Next >
[opensuse-buildservice] OBS 2.3 corrections
Hi all,

I found some errors in de configurations of the OBS 2.3 server.

I've attached the corrected files and the patches.

It's related to:
Documentation: /usr/share/doc/packages/obs-api/README.SETUP
Apache vhosts configuration: /etc/apache2/vhosts.d/obs.conf

I've added the api port 81 connection as a quick fix and as the internal
doesn't really need to be encrypted.

Should I create a bug report for this?

Regards,

Joop.


--- README.SETUP.orig 2011-05-20 16:28:22.000000000 +0200
+++ README.SETUP 2011-09-21 19:26:27.442909088 +0200
@@ -171,7 +171,7 @@

Add the follwing apache modules in /etc/sysconfig/apache2:

- APACHE_MODULES="... passenger rewrite proxy proxy_http xforward"
+ APACHE_MODULES="... passenger rewrite proxy proxy_http xforward headers"

Enable SSL in /etc/sysconfig/apache2 via

@@ -179,6 +179,7 @@

Generate an ssl certificate via following commands:

+ # mkdir -p /srv/obs/certs
# openssl genrsa -out /srv/obs/certs/server.key 1024
# openssl req -new -key /srv/obs/certs/server.key -out
/srv/obs/certs/server.csr >& /dev/null
# openssl x509 -req -days 365 -in /srv/obs/certs/server.csr -signkey
/srv/obs/certs/server.key -out /srv/obs/certs/server.crt
@@ -206,7 +207,7 @@
If you change the hostnames/ips of the api, you need to adjust
"source_server_url" accordingly in

- /srv/www/obs/webui/config/options.yml
+ /srv/www/obs/api/config/options.yml

It is recommended to enable
--- obs.conf.orig 2011-09-21 12:57:26.000000000 +0200
+++ obs.conf 2011-09-21 19:52:18.112371252 +0200
@@ -1,4 +1,5 @@

+Listen 81
Listen 82
Listen 444

@@ -23,12 +24,23 @@
</VirtualHost>


+# Internal Api access
+<VirtualHost *:81>
+ # The resulting repositories
+ DocumentRoot "/srv/www/obs/api/public"
+
+ <Directory /srv/www/obs/api/public>
+ Options Indexes
+ Allow from all
+ </Directory>
+</VirtualHost>
+
# Build Results
<VirtualHost *:82>
# The resulting repositories
- DocumentRoot "/obs/repos"
+ DocumentRoot "/srv/obs/repos"

- <Directory /obs/repos>
+ <Directory /srv/obs/repos>
Options Indexes
Allow from all
</Directory>
< Previous Next >