{"id":399982,"date":"2024-06-29T14:59:30","date_gmt":"2024-06-29T14:59:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=399982"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=399982","title":{"rendered":"<span>Modern Web-UI for SVN repositories<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/l_\/2k\/l8\/l_2kl8unfj7waipnge-7bfmgx38.png\" width=\"96\" height=\"96\" align=\"left\" data-src=\"https:\/\/habrastorage.org\/webt\/l_\/2k\/l8\/l_2kl8unfj7waipnge-7bfmgx38.png\"\/> <b>cSvn<\/b> \u2014 is a web interface for <b>Subversion<\/b> repositories. <b>cSvn<\/b> is based on CGI script written in <b>\u0421<\/b>.  <\/p>\n<p>  <\/p>\n<p>This article covers installing and configuring <b>cSvn<\/b> to work using <a href=\"https:\/\/nginx.org\/en\/\" rel=\"nofollow\"><b>Nginx<\/b><\/a> + <a href=\"https:\/\/uwsgi-docs.readthedocs.io\/en\/latest\/\" rel=\"nofollow\"><b>uWsgi<\/b><\/a>. Setting up server components is quite simple and practically does not differ from setting up <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Cgit\" rel=\"nofollow\"><b>cGit<\/b><\/a>.  <\/p>\n<p>  <\/p>\n<p><b>cSvn<\/b> supports Markdown files that are processed on the server side using the <a href=\"https:\/\/github.com\/mity\/md4c\" rel=\"nofollow\">md4c<\/a> library, which has proven itself in the <b>KDE Plasma<\/b> project. <b>cSvn<\/b> provides the ability to add site verification codes and scripts from systems such as <b><em>Google Analytics<\/em><\/b> and <b><em>Yandex.Metrika<\/em><\/b> for trafic analysis. Users who wonder to receive donations for his projects can create and import custom donation modal dialogs.  <\/p>\n<p>  <\/p>\n<p>Instead of looking at screenshots, it is better to look at the <a href=\"https:\/\/csvn.radix.pro\/\" rel=\"nofollow\">working site<\/a> to decide on installing <a href=\"https:\/\/csvn.radix.pro\/\" rel=\"nofollow\"><b>cSvn<\/b><\/a> on your own server.  <\/p>\n<p>  <\/p>\n<p>It should be noted that you can browse not only your own repositories, but also configure viewing of third-party resources via HTTPS and SVN protocols.  <\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2>Reqired packages<\/h2>\n<p>  <\/p>\n<p><b>cSvn<\/b> depends of following libraries: <a href=\"https:\/\/www.pcre.org\/\" rel=\"nofollow\"><b>libpcre2<\/b><\/a>, <a href=\"https:\/\/github.com\/mity\/md4c\/\" rel=\"nofollow\"><b>libmd4c<\/b><\/a>, <a href=\"https:\/\/github.com\/mity\/md4c\/\" rel=\"nofollow\"><b>libmd4c-html<\/b><\/a>, <a href=\"http:\/\/darwinsys.com\/file\/\" rel=\"nofollow\"><b>libmagic<\/b><\/a>, and <a href=\"http:\/\/www.xmlsoft.org\/\" rel=\"nofollow\"><b>libxml2<\/b><\/a>.  <\/p>\n<p>  <\/p>\n<p>To use <b>cSvn<\/b> a web server must be installed and configured on the system. We recommend the <a href=\"https:\/\/nginx.org\/en\/\" rel=\"nofollow\"><b>Nginx<\/b><\/a> with <a href=\"https:\/\/uwsgi-docs.readthedocs.io\/en\/latest\/\" rel=\"nofollow\"><b>uWsgi<\/b><\/a> application server. Of course <a href=\"https:\/\/subversion.apache.org\/\" rel=\"nofollow\"><b>Apache Subversion<\/b><\/a> SCM system should be installed too.  <\/p>\n<p>  <\/p>\n<h2>Installation<\/h2>\n<p>  <\/p>\n<p>The <b>cSvn<\/b> package consists of two parts. First of which is a regular Linux daemon that is responsible for parsing the configuration file, and the second is a CGI script that responds to HTTP requests. Both parts of the package are installed simultaneously but are maintained independently of each other.  <\/p>\n<p>  <\/p>\n<h3>Download Sources<\/h3>\n<p>  <\/p>\n<p>To obtain sources we have to checkout its from <a href=\"https:\/\/csvn.radix.pro\/csvn\/tags\/\" rel=\"nofollow\">SVN repository<\/a>:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">svn checkout svn checkout svn:\/\/radix.pro\/csvn\/tags\/csvn-0.1.2 csvn-0.1.2 <\/code><\/pre>\n<p>  <\/p>\n<p>and run the bootstrap script:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">cd csvn-0.1.2 .\/bootstrap <\/code><\/pre>\n<p>  <\/p>\n<p>Also <b>cSvn<\/b> source packages are available for download on the <a href=\"https:\/\/ftp.radix.pro\/pub\/csvn\/\" rel=\"nofollow\">Radix.pro FTP-server<\/a>.  <\/p>\n<p>  <\/p>\n<h4>Bootstrap Script<\/h4>\n<p>  <\/p>\n<p>The <em>bootstrap<\/em> script especialy created for <em>Autotools<\/em> install automation. To install <em>Autotools<\/em> into source directory on build machine (i.e. when <b>build<\/b> == <b>host<\/b>) the <em>bootstrap<\/em> script can be run without arguments.  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">.\/bootstrap <\/code><\/pre>\n<p>  <\/p>\n<p>In this case <em>Autotools<\/em> will be installed from current root file system.  <\/p>\n<p>  <\/p>\n<p>For the cross environment the <b>&#8212;target-dest-dir<\/b> option allows to install some stuff from development root file system:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">TARGET_DEST_DIR=\/home\/developer\/prog\/trunk-672\/dist\/.s9xx-glibc\/enybox-x2 \\     .\/bootstrap --target-dest-dir=${TARGET_DEST_DIR} <\/code><\/pre>\n<p>  <\/p>\n<p>For example, in this case the <em>aclocal.m4<\/em> script will be collected from the<br \/>  <em>${TARGET_DEST_DIR}\/usr\/share\/aclocal<\/em> directory.  <\/p>\n<p>  <\/p>\n<h3>Configuring Sources<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">.\/configure --prefix=\/usr \\             --sysconfdir=\/etc \\             --with-config=\/etc\/csvnrc \\             --with-controldir=\/etc\/rc.d \\             --with-logrotatedir=\/etc\/logrotate.d \\             --with-scriptdir=\/var\/www\/htdocs\/csvn \\             --with-homedir=\/var\/lib\/csvn \\             --with-logdir=\/var\/log \\             --with-piddir=\/var\/run <\/code><\/pre>\n<p>  <\/p>\n<h4>Install on the Build Machine<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\">make make install <\/code><\/pre>\n<p>  <\/p>\n<h4>Cross Compilation Example<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/sh  TARGET_DEST_DIR=\/home\/developer\/prog\/trunk-672\/dist\/.s9xx-glibc\/enybox-x2 TOOLCHAIN_PATH=\/opt\/toolchains\/aarch64-S9XX-linux-glibc\/1.1.4\/bin TARGET=aarch64-s9xx-linux-gnu  .\/bootstrap --target-dest-dir=${TARGET_DEST_DIR}  PKG_CONFIG=\/usr\/bin\/pkg-config \\ PKG_CONFIG_PATH=${TARGET_DEST_DIR}\/usr\/lib${LIBDIRSUFFIX}\/pkgconfig:${TARGET_DEST_DIR}\/usr\/share\/pkgconfig \\ PKG_CONFIG_LIBDIR=${TARGET_DEST_DIR}\/usr\/lib${LIBDIRSUFFIX}\/pkgconfig:${TARGET_DEST_DIR}\/usr\/share\/pkgconfig \\ STRIP=\"${TOOLCHAIN_PATH}\/${TARGET}-strip\" \\ CC=\"${TOOLCHAIN_PATH}\/${TARGET}-gcc --sysroot=${TARGET_DEST_DIR}\" \\ .\/configure --prefix=\/usr   --build=x86_64-pc-linux-gnu \\   --host=${TARGET} \\   --sysconfdir=\/etc \\   --with-config=\/etc\/csvnrc \\   --with-controldir=\/etc\/rc.d \\   --with-logrotatedir=\/etc\/logrotate.d \\   --with-scriptdir=\/var\/www\/htdocs\/csvn \\   --with-homedir=\/var\/lib\/csvn \\   --with-logdir=\/var\/log \\   --with-piddir=\/var\/run  make make install DESTDIR=${TARGET_DEST_DIR} <\/code><\/pre>\n<p>  <\/p>\n<p>Also we can make use of additional variables such as <b>CFLAGS<\/b>, <b>LDFLAGS<\/b>:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">LDFLAGS=\"-L${TARGET_DEST_DIR}\/lib -L${TARGET_DEST_DIR}\/usr\/lib\" TARGET_INCPATH=\"-L${TARGET_DEST_DIR}\/usr\/include\" CFLAGS=\"${TARGET_INCPATH}\" CPPFLAGS=\"${TARGET_INCPATH}\" <\/code><\/pre>\n<p>  <\/p>\n<h3>Post Install<\/h3>\n<p>  <\/p>\n<p>The system user, on whose behalf the <b>Nginx<\/b> server is launched, must have permissions to access the directory in which the <b>cSvn<\/b> CGI script was installed:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">chown -R nginx:nginx \/var\/www\/htdocs\/csvn <\/code><\/pre>\n<p>  <\/p>\n<p>If you configured access to your repositories on behalf system user named <b>svn<\/b>, then it would be good to grant permissions to <b>svn<\/b> user to acces to the directory <em>\/var\/lib\/csvn\/<\/em> which is a home of <a href=\"https:\/\/csvn.radix.pro\/csvn\/trunk\/doc\/csvnd.8.md\" rel=\"nofollow\"><b>csvnd(8)<\/b><\/a> daemon:  <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">chown -R svn:svn \/var\/lib\/csvn <\/code><\/pre>\n<p>  <\/p>\n<p>and also run the <b>csvnd<\/b> daemon on behalf of that <b>svn<\/b> user.  <\/p>\n<p>  <\/p>\n<p>To run the <b>csvnd<\/b> daemon on systems with BSD-like initialization such as <b>Slackware<\/b> we have to add following lines to the <em>\/etc\/rc.d\/rc.M<\/em> and <em>\/etc\/rc.d\/rc.6<\/em> scripts correspondengly:  <\/p>\n<p>  <b>\/etc\/rc.d\/rc.M:<\/b><\/p>\n<pre><code class=\"bash\"># Start csvnd server: if [ -x \/etc\/rc.d\/rc.csvnd ]; then   \/etc\/rc.d\/rc.csvnd start fi <\/code><\/pre>\n<p>  <b>\/etc\/rc.d\/rc.6:<\/b><\/p>\n<pre><code class=\"bash\"># Stop csvnd server: if [ -x \/etc\/rc.d\/rc.csvnd ]; then   \/etc\/rc.d\/rc.csvnd stop fi <\/code><\/pre>\n<p>For systems which uses systemd initialization you have to setup your own systemd unit like follow:  <\/p>\n<p>  <b>\/etc\/systemd\/system\/csvnd.service:<\/b><\/p>\n<pre><code class=\"bash\">[Unit] Description=The cSvn daemon After=network.target  [Service] PIDFile=\/var\/run\/csvnd.pid ExecStart=\/usr\/sbin\/csvnd --daemonize --inotify --config=\/etc\/csvnrc ExecReload=\/bin\/kill -s HUP $MAINPID ExecStop=\/bin\/kill -s TERM $MAINPID  [Install] WantedBy=multi-user.target <\/code><\/pre>\n<h2>uWsgi<\/h2>\n<p>  <\/p>\n<p>Since we used the <em>&#8212;with-scriptdir=\/var\/www\/htdocs\/csvn<\/em> option on configuring stage, the <b>cSvn<\/b> CGI script installed in the <em>\/var\/www\/htdocs\/csvn\/<\/em> directory. In this case, the <em>\/etc\/uwsgi\/csvn.ini<\/em> file should look like this:  <\/p>\n<p>  <b>\/etc\/uwsgi\/csvn.ini:<\/b><\/p>\n<pre><code class=\"bash\">[uwsgi] master          = true plugins         = cgi socket          = \/run\/uwsgi\/%n.sock uid             = nginx gid             = nginx procname-master = uwsgi csvn processes       = 1 threads         = 2 cgi             = \/var\/www\/htdocs\/csvn\/csvn.cgi <\/code><\/pre>\n<p>Where <em>\/var\/www\/htdocs\/csvn\/csvn.cgi<\/em> is the full name of installed <b>cSvn<\/b> CGI script.  <\/p>\n<p>  <\/p>\n<p>To run the <b>uWSGI<\/b> daemon for <b>cSvn<\/b> backend we can make use following start\/stop script:  <\/p>\n<p>  <b>\/ets\/rc.d\/rc.csvn-uwsgi:<\/b><\/p>\n<pre><code class=\"bash\">#!\/bin\/sh # # uWSGI daemon control script. #  CONF=csvn BIN=\/usr\/bin\/uwsgi CONFDIR=\/etc\/uwsgi PID=\/var\/run\/$CONF-uwsgi.pid  uwsgi_start() {   # Sanity checks.   if [ ! -r $CONFDIR\/csvn.ini ]; then # no config files, exit:     echo \"There are config files in $CONFDIR directory. Abort.\"     exit 1   fi    if [ -s $PID ]; then     echo \"uWSGI for cSvn appears to already be running?\"     exit 1   fi    echo \"Starting uWSGI for cSvn server daemon...\"   if [ -x $BIN ]; then     \/bin\/mkdir -p \/run\/uwsgi     \/bin\/chown nginx:nginx \/run\/uwsgi     \/bin\/chmod 0755 \/run\/uwsgi     $BIN --thunder-lock --pidfile $PID --daemonize \/var\/log\/csvn-uwsgi.log --ini $CONFDIR\/$CONF.ini   fi }  uwsgi_stop() {   echo \"Shutdown uWSGI for cSvn gracefully...\"   \/bin\/kill -INT $(cat $PID)   \/bin\/rm -f $PID }  uwsgi_reload() {   echo \"Reloading uWSGI for cSvn configuration...\"   kill -HUP $(cat $PID) }  uwsgi_restart() {   uwsgi_stop   sleep 3   uwsgi_start }  case \"$1\" in   start)     uwsgi_start     ;;   stop)     uwsgi_stop     ;;   reload)     uwsgi_reload     ;;   restart)     uwsgi_restart     ;;   *)   echo \"usage: `basename $0` {start|stop|reload|restart}\" esac <\/code><\/pre>\n<p>To run this daemon on systems with BSD-like initialization such as <b>Slackware<\/b> we have to add following lines to the <em>\/etc\/rc.d\/rc.M<\/em> and <em>\/etc\/rc.d\/rc.6<\/em> scripts correspondingly.  <\/p>\n<p>  <b>\/etc\/rc.d\/rc.M:<\/b><\/p>\n<pre><code class=\"bash\"># Start uWSGI for cSvn server: if [ -x \/etc\/rc.d\/rc.csvn-uwsgi ]; then   \/etc\/rc.d\/rc.csvn-uwsgi start fi <\/code><\/pre>\n<p>  <b>\/etc\/rc.d\/rc.6:<\/b><\/p>\n<pre><code class=\"bash\"># Stop uWSGI for cSvn server: if [ -x \/etc\/rc.d\/rc.csvn-uwsgi ]; then   \/etc\/rc.d\/rc.csvn-uwsgi stop fi <\/code><\/pre>\n<h2>Nginx<\/h2>\n<p>  <\/p>\n<p>First of all we have to add virtual server to the main <b>Nginx<\/b> config file:  <\/p>\n<p>  <b>\/etc\/nginx\/nginx.conf:<\/b><\/p>\n<pre><code class=\"nginx\">    include \/etc\/nginx\/vhosts\/csvn.example.org.conf; <\/code><\/pre>\n<p>The following configuration used <b>uWsgi<\/b> and will serve <b>cSvn<\/b> on a subdomain like <b>csvn.example.org<\/b>:  <\/p>\n<p>  <b>\/etc\/nginx\/vhosts\/csvn.example.org.conf:<\/b><\/p>\n<pre><code class=\"nginx\"># # cSvn server: #      server {         listen 80;         server_name csvn.example.org;         return 301 https:\/\/csvn.example.org$request_uri;     }      server {         listen 443 ssl;         server_name csvn.example.org;         root \/var\/www\/htdocs\/csvn;          charset UTF-8;          #         # see:         #   https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/HTTP_strict_transport_security ,         #   https:\/\/raymii.org\/s\/tutorials\/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html         #         # see also: http:\/\/classically.me\/blogs\/how-clear-hsts-settings-major-browsers         # and do not include includeSubdomains; parameter into line:         #         add_header Strict-Transport-Security \"max-age=63072000; preload\";          error_log \/var\/log\/nginx\/csvn.example.org-error.log;         access_log \/var\/log\/nginx\/csvn.example.org-access.log;          keepalive_timeout        60;         ssl_certificate          \/etc\/letsencrypt\/live\/csvn.example.org\/fullchain.pem;         ssl_certificate_key      \/etc\/letsencrypt\/live\/csvn.example.org\/privkey.pem;         ssl_trusted_certificate  \/etc\/letsencrypt\/live\/csvn.example.org\/chain.pem;         ssl_protocols            SSLv3 TLSv1 TLSv1.1 TLSv1.2;         ssl_ciphers              \"RC4:HIGH:!aNULL:!MD5:!kEDH\";          gzip on;         gzip_disable \"msie6\";         gzip_comp_level 6;         gzip_min_length 1100;         gzip_buffers 16 8k;         gzip_proxied any;         gzip_types text\/plain text\/css text\/js text\/xml text\/javascript                    image\/svg+xml image\/gif image\/jpeg image\/png                    application\/json application\/x-javascript application\/xml application\/xml+rss application\/javascript                    font\/truetype font\/opentype application\/font-woff application\/font-woff2                    application\/x-font-ttf application\/x-font-opentype application\/vnd.ms-fontobject application\/font-sfnt;          #         # Serve static content with nginx         #          #         # Rewrite rules for versioning CSS + JS thtouh filemtime directive         #         location ~* ^.+.(css|js)$ {             rewrite ^(.+).(d+).(css|js)$ $1.$3 last;              expires 31536000s;              access_log off;             log_not_found off;              add_header Pragma public;             add_header Cache-Control \"max-age=31536000, public\";         }          #         # Caching of static files         #         location ~* .(eot|gif|gz|gzip|ico|jpg|jpeg|otf|pdf|png|svg|svgz|swf|tar|t?gz|woff|zip)$ {             expires 31536000s;              access_log off;             log_not_found off;              add_header Pragma public;             add_header Cache-Control \"max-age=31536000, public\";         }          location ~ ^\/favicon.ico$ {             root \/u3\/nginx\/vhosts\/csvn;             access_log off;             log_not_found off;             expires 30d;         }          location = \/robots.txt {             allow all;             log_not_found off;             access_log off;         }          location \/ {             try_files $uri @csvn;         }          location @csvn {             gzip off;             include uwsgi_params;             uwsgi_modifier1 9;             uwsgi_pass unix:\/run\/uwsgi\/csvn.sock;         }     } <\/code><\/pre>\n<h2>Configuring SVN Repositories<\/h2>\n<p>  <\/p>\n<p>A detailed description of the configuration file format can be found in the <a href=\"https:\/\/csvn.radix.pro\/csvn\/trunk\/doc\/csvnrc.5.md\" rel=\"nofollow\"><b>csvnrc(5)<\/b><\/a> manual page.  <\/p>\n<p>  <\/p>\n<p>Here we will give a working example of a description of the <b>cSvn<\/b> repository which can be used as a template for your configurations.  <\/p>\n<p>  <b>\/etc\/csvnrc:<\/b><\/p>\n<pre><code class=\"bash\">svn-utc-offset = +0300;  checkout-prefix-readonly = 'svn:\/\/radix.pro'; checkout-prefix          = 'svn+ssh:\/\/svn@radix.pro';  branches = 'branches'; trunk    = 'trunk'; tags     = 'tags';  snapshots = 'tar.xz';  css = '\/.csvn\/css\/csvn.css'; logo = '\/.csvn\/pixmaps\/csvn-banner-280x280.png'; logo-alt = \"Radix.pro\"; logo-link = \"https:\/\/radix.pro\"; main-menu-logo = '\/.csvn\/pixmaps\/logo\/SVN-logo-white-744x744.svg'; favicon-path = '\/.csvn\/pixmaps\/favicon'; syntax-highlight-css = '_csvn.css'; header = '\/.csvn\/html\/header.html'; footer = '\/.csvn\/html\/footer.html'; page-size = 200;  owner = \"Andrey V.Kosteltsev\"; author = \"Andrey V.Kosteltsev\"; title = \"Radix.pro SVN Repositories\"; description = \"Subversion repositories hosted at radix.pro (St.-Petersburg)\"; keywords = \"cSvn repositories\"; copyright = \"\u00a9 Andrey V. Kosteltsev, 2019 \u2013 2020.\"; copyright-notice = \"Where any material of this site is being reproduced, published or issued to others the reference to the source is obligatory.\";  home-page = \"https:\/\/radix.pro\/\";  section \"Tools\" {   repo 'csvn' {     owner = \"Andrey V.Kosteltsev\";     title = \"cSvn CGI Script\";     description = \"cSvn CGI Script \u2013 is a web frontend for Subversion\u2122 Repositories\";     home-page = \"https:\/\/radix.pro\/\";   } } <\/code><\/pre>\n<p>  <\/p>\n<p>To access your own repositories, we recommend the <b>svn+ssh<\/b> protocol.  <\/p>\n<p>  <\/p>\n<h2>Final Settings<\/h2>\n<p>  <\/p>\n<p>Files needed to work on web-client side are placed in the <em>\/var\/www\/htdocs\/csvn\/.csvn\/<\/em> directory. By editing the HTML header file <em>\/.csvn\/html\/header.html<\/em> and <b>cSvn<\/b> config file <em>\/etc\/csvnrc<\/em> user can change <em>favicon.ico<\/em>, change the theme of syntax highlighting, choose images for his repositories, define keywords for search engines such as Google, and also bunch of the other settings.  <\/p>\n<p>  <\/p>\n<p>Additional information about support of analysis services and custom donation dialogues you can find on <a href=\"https:\/\/csvn.radix.pro\/csvn\/trunk\/doc\/csvnrc.5.md\" rel=\"nofollow\"><b>csvnrc(5)<\/b><\/a> page.  <\/p>\n<p>  <\/p>\n<p>Enjoy.  <\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/529264\/\"> https:\/\/habr.com\/ru\/articles\/529264\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/l_\/2k\/l8\/l_2kl8unfj7waipnge-7bfmgx38.png\" width=\"96\" height=\"96\" align=\"left\" data-src=\"https:\/\/habrastorage.org\/webt\/l_\/2k\/l8\/l_2kl8unfj7waipnge-7bfmgx38.png\"\/> <b>cSvn<\/b> \u2014 is a web interface for <b>Subversion<\/b> repositories. <b>cSvn<\/b> is based on CGI script written in <b>\u0421<\/b>.  <\/p>\n<p>  <\/p>\n<p>This article covers installing and configuring <b>cSvn<\/b> to work using <a href=\"https:\/\/nginx.org\/en\/\" rel=\"nofollow\"><b>Nginx<\/b><\/a> + <a href=\"https:\/\/uwsgi-docs.readthedocs.io\/en\/latest\/\" rel=\"nofollow\"><b>uWsgi<\/b><\/a>. Setting up server components is quite simple and practically does not differ from setting up <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Cgit\" rel=\"nofollow\"><b>cGit<\/b><\/a>.  <\/p>\n<p>  <\/p>\n<p><b>cSvn<\/b> supports Markdown files that are processed on the server side using the <a href=\"https:\/\/github.com\/mity\/md4c\" rel=\"nofollow\">md4c<\/a> library, which has proven itself in the <b>KDE Plasma<\/b> project. <b>cSvn<\/b> provides the ability to add site verification codes and scripts from systems such as <b><em>Google Analytics<\/em><\/b> and <b><em>Yandex.Metrika<\/em><\/b> for trafic analysis. Users who wonder to receive donations for his projects can create and import custom donation modal dialogs.  <\/p>\n<p>  <\/p>\n<p>Instead of looking at screenshots, it is better to look at the <a href=\"https:\/\/csvn.radix.pro\/\" rel=\"nofollow\">working site<\/a> to decide on installing <a href=\"https:\/\/csvn.radix.pro\/\" rel=\"nofollow\"><b>cSvn<\/b><\/a> on your own server.  <\/p>\n<p>  <\/p>\n<p>It should be noted that you can browse not only your own repositories, but also configure viewing of third-party resources via HTTPS and SVN protocols.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-399982","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/399982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399982"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/399982\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}