#42 working with gin on a different server

Open
opened 3 years ago by jcolomb · 3 comments

gin-cli

  • how about having mulitple servers installed in the gin-cli installation ? (meaning running gin add-server --web https://gindata.biologie.hu-berlin.de:443 --git git@gindata.biologie.hu-berlin.de:10022 hu at the end of the installation)
  • how about having a gin logins function trying all servers, this would make it easier to work with multitple servers, aws long as people are not using the same login username ?
try(
    gin use-server gin
    gin login <>
    )
if error
gin use-server hu
gin login<>

website:

  • help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ?
  • change website look, flavicon logo: can we do that and keep a simple upgrade of gin ?
## gin-cli - how about having mulitple servers installed in the gin-cli installation ? (meaning running ` gin add-server --web https://gindata.biologie.hu-berlin.de:443 --git git@gindata.biologie.hu-berlin.de:10022 hu` at the end of the installation) - how about having a gin logins function trying all servers, this would make it easier to work with multitple servers, aws long as people are not using the same login username ? ``` gin logins <> try( gin use-server gin gin login <> ) if error gin use-server hu gin login<> ``` ## website: - help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ? - change website look, flavicon logo: can we do that and keep a simple upgrade of gin ?
julien colomb commented 3 years ago
Poster

Get the request doi button to work

What do we need for that?

# Get the `request doi` button to work What do we need for that?
Achilleas Koutsou commented 3 years ago
Owner
  • how about having mulitple servers installed in the gin-cli installation ? (meaning running gin add-server --web https://gindata.biologie.hu-berlin.de:443 --git git@gindata.biologie.hu-berlin.de:10022 hu at the end of the installation)

We could have a custom installer that puts a config file with the servers in the user's config location (or a global location).

  • how about having a gin logins function trying all servers, this would make it easier to work with multitple servers, aws long as people are not using the same login username ?

gin login supports the --server flag. You can use that to specify where to login. Not sure it's a good idea to start logging in to every configured server until something works. It's a bit too automatic and weird/unexpected behaviour I think. Logging in is something that only happens once per server, so not sure I'd like to have this weird behaviour for an operation that's not very common.

  • help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ?

We should probably have a way to configure where those point. That way you could have your own help pages or you could link them to GIN itself.

  • change website look, flavicon logo: can we do that and keep a simple upgrade of gin ?

You can put templates, assets, and css files in the custom directory:

  • templates go in custom/templates/
  • static files and css go in custom/public/

For example, if you want to override/change the header that goes on every page, you can add a new template in custom/templates/base/head.tmpl based on our version. You can change the favicon by placing an image at custom/public/img/favicon.png. You can extend the css styles by placing a file at custom/public/css/custom.css.

See the upstream GOGS docs for more information.

Get the request doi button to work

What do we need for that?

I don't think this is possible with the way the DOI service works now. I think it would be better to override the templates to remove the button. We plan to make the button not show up at all when the DOI service isn't configured for an instance.

> - how about having mulitple servers installed in the gin-cli installation ? (meaning running ` gin add-server --web https://gindata.biologie.hu-berlin.de:443 --git git@gindata.biologie.hu-berlin.de:10022 hu` at the end of the installation) We could have a custom installer that puts a config file with the servers in the user's config location (or a global location). > - how about having a gin logins function trying all servers, this would make it easier to work with multitple servers, aws long as people are not using the same login username ? `gin login` supports the `--server` flag. You can use that to specify where to login. Not sure it's a good idea to start logging in to every configured server until something works. It's a bit too automatic and weird/unexpected behaviour I think. Logging in is something that only happens once per server, so not sure I'd like to have this weird behaviour for an operation that's not very common. > - help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ? We should probably have a way to configure where those point. That way you could have your own help pages or you could link them to GIN itself. > - change website look, flavicon logo: can we do that and keep a simple upgrade of gin ? You can put templates, assets, and css files in the custom directory: - templates go in `custom/templates/` - static files and css go in `custom/public/` For example, if you want to override/change the header that goes on every page, you can add a new template in `custom/templates/base/head.tmpl` based on [our version](https://github.com/G-Node/gogs/blob/master/templates/base/head.tmpl). You can change the favicon by placing an image at `custom/public/img/favicon.png`. You can extend the css styles by placing a file at `custom/public/css/custom.css`. See [the upstream GOGS docs](https://gogs.io/docs/features/custom_template) for more information. > Get the `request doi` button to work > > What do we need for that? I don't think this is possible with the way the DOI service works now. I think it would be better to override the templates to remove the button. We plan to make the button not show up at all when the DOI service isn't configured for an instance.
julien colomb commented 3 years ago
Poster

help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ?

Workaround:

  • create a g-node organisation
  • create g-node/info repository
  • set wiki and issue as external link to the main gin repo wiki and issues

Problem is that one end up in the main gin website, with no link to go back.

Any way to mirror the wiki ? (I think the issues is good to have on main gin server)

> help and news link needs to be redirected to gin website, should they be linked with https address instead of relative address ? Workaround: - create a g-node organisation - create g-node/info repository - set wiki and issue as external link to the main gin repo wiki and issues Problem is that one end up in the main gin website, with no link to go back. Any way to mirror the wiki ? (I think the issues is good to have on main gin server)
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.