gitea config location change Re: CVS: cvs.openbsd.org: www

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

gitea config location change Re: CVS: cvs.openbsd.org: www

Florian Obser-2
On Fri, Feb 15, 2019 at 04:30:09AM -0700, Pavel Korovin wrote:

> CVSROOT: /cvs
> Module name: www
> Changes by: [hidden email] 2019/02/15 04:30:09
>
> Modified files:
> faq            : current.html
>
> Log message:
> Note changes in security/opendnssec and www/gitea packages
>

this description has been far from complete and broke left and right.
places where gitea places the location of the config file I foud so far:

- force command in ssh keys
- hooks/post-receive.d/gitea, hooks/pre-receive.d/gitea, hooks/update.d/gitea in every repo

--
I'm not entirely sure you are real.

Reply | Threaded
Open this post in threaded view
|

Re: gitea config location change Re: CVS: cvs.openbsd.org: www

Stuart Henderson
On 2019/02/28 16:45, Florian Obser wrote:

> On Fri, Feb 15, 2019 at 04:30:09AM -0700, Pavel Korovin wrote:
> > CVSROOT: /cvs
> > Module name: www
> > Changes by: [hidden email] 2019/02/15 04:30:09
> >
> > Modified files:
> > faq            : current.html
> >
> > Log message:
> > Note changes in security/opendnssec and www/gitea packages
> >
>
> this description has been far from complete and broke left and right.
> places where gitea places the location of the config file I foud so far:
>
> - force command in ssh keys
> - hooks/post-receive.d/gitea, hooks/pre-receive.d/gitea, hooks/update.d/gitea in every repo
>
> --
> I'm not entirely sure you are real.
>

yeuch.  my vote would be for putting paths back how they were before ...

Reply | Threaded
Open this post in threaded view
|

Re: gitea config location change

Pavel Korovin-2
In reply to this post by Florian Obser-2
Sorry for long delay, I've had health condition and had to relocate after that.

I'm thinking of several workarounds for existing setups:

1. Leave default config in the new location /etc/gitea/app.ini and
   create a symlink to the old config location:
    # cd /etc/gitea && rm app.ini && ln -s conf/app.ini app.ini

2. Leave default config in the new location and overrride it in
   /etc/rc.conf.local:
    gitea_flags="web -c /etc/gitea/conf/app.ini"

3. Change default config to the old location /etc/gitea/conf/app.ini
   in Gitea's rc script:
    daemon_flags="web -c /etc/gitea/conf/app.ini"

Suggestions?

--
With best regards,
Pavel Korovin

On 02/28, Florian Obser wrote:

> On Fri, Feb 15, 2019 at 04:30:09AM -0700, Pavel Korovin wrote:
> > CVSROOT: /cvs
> > Module name: www
> > Changes by: [hidden email] 2019/02/15 04:30:09
> >
> > Modified files:
> > faq            : current.html
> >
> > Log message:
> > Note changes in security/opendnssec and www/gitea packages
> >
>
> this description has been far from complete and broke left and right.
> places where gitea places the location of the config file I foud so far:
>
> - force command in ssh keys
> - hooks/post-receive.d/gitea, hooks/pre-receive.d/gitea, hooks/update.d/gitea in every repo

Reply | Threaded
Open this post in threaded view
|

Re: gitea config location change

Florian Obser-2
On Sat, Mar 16, 2019 at 03:30:09PM +0300, Pavel Korovin wrote:

> Sorry for long delay, I've had health condition and had to relocate after that.
>
> I'm thinking of several workarounds for existing setups:
>
> 1. Leave default config in the new location /etc/gitea/app.ini and
>    create a symlink to the old config location:
>     # cd /etc/gitea && rm app.ini && ln -s conf/app.ini app.ini
>
> 2. Leave default config in the new location and overrride it in
>    /etc/rc.conf.local:
>     gitea_flags="web -c /etc/gitea/conf/app.ini"
>
> 3. Change default config to the old location /etc/gitea/conf/app.ini
>    in Gitea's rc script:
>     daemon_flags="web -c /etc/gitea/conf/app.ini"
>
> Suggestions?

I'm over the bump now, and the list from my first mail was exhaustive
for my setup. Things change and stuff breaks, maybe just extend the
description in current.html so that we have a better discription for
the 6.5 upgrade notes?

>
> --
> With best regards,
> Pavel Korovin
>
> On 02/28, Florian Obser wrote:
> > On Fri, Feb 15, 2019 at 04:30:09AM -0700, Pavel Korovin wrote:
> > > CVSROOT: /cvs
> > > Module name: www
> > > Changes by: [hidden email] 2019/02/15 04:30:09
> > >
> > > Modified files:
> > > faq            : current.html
> > >
> > > Log message:
> > > Note changes in security/opendnssec and www/gitea packages
> > >
> >
> > this description has been far from complete and broke left and right.
> > places where gitea places the location of the config file I foud so far:
> >
> > - force command in ssh keys
> > - hooks/post-receive.d/gitea, hooks/pre-receive.d/gitea, hooks/update.d/gitea in every repo

--
I'm not entirely sure you are real.

Reply | Threaded
Open this post in threaded view
|

Re: gitea config location change

Pavel Korovin-2
On 03/16, Florian Obser wrote:

> On Sat, Mar 16, 2019 at 03:30:09PM +0300, Pavel Korovin wrote:
> > I'm thinking of several workarounds for existing setups:
> >
> > 1. Leave default config in the new location /etc/gitea/app.ini and
> >    create a symlink to the old config location:
> >     # cd /etc/gitea && rm app.ini && ln -s conf/app.ini app.ini
> >
> > 2. Leave default config in the new location and overrride it in
> >    /etc/rc.conf.local:
> >     gitea_flags="web -c /etc/gitea/conf/app.ini"
> >
> > 3. Change default config to the old location /etc/gitea/conf/app.ini
> >    in Gitea's rc script:
> >     daemon_flags="web -c /etc/gitea/conf/app.ini"
> >
> > Suggestions?
>
> I'm over the bump now, and the list from my first mail was exhaustive
> for my setup. Things change and stuff breaks, maybe just extend the
> description in current.html so that we have a better discription for
> the 6.5 upgrade notes?
 
OK, what about something like the updated gitea entry in faq/current.html:

---
Gitea default configuration file location changed from /etc/gitea/conf/app.ini
to /etc/gitea/app.ini. GITEA_CUSTOM directory location has changed from
/etc/gitea to /var/gitea/custom. Gitea's ROOT_PATH for logs has changed
from /var/gitea/log to /var/log/gitea.

Since Gitea hardcodes path to confguration file in ssh configuration and hooks,
in order to keep _existing_ setup working, instruct Gitea to use the old
configuration file location by adding the following to /etc/rc.conf.local:

gitea_flags="web -c /etc/gitea/conf/app.ini"

change the ROOT_PATH location in [log] section of
/etc/gitea/conf/app.ini:

[log]
ROOT_PATH  = /var/log/gitea

and move custom files from /etc/gitea to /var/gitea/custom, if any.

Later you can update the ssh config and hooks and remove gitea_flags
from /etc/rc.conf.local.
---

Please advise.

--
With best regards,
Pavel Korovin