trucs à reprendre
This commit is contained in:
parent
319553cafe
commit
b1a5d5428b
19
README.md
19
README.md
@ -1,5 +1,24 @@
|
||||
# Gnuragistes
|
||||
|
||||
## todo
|
||||
|
||||
* changer le domaine par défaut vers sso.gnuragist.es
|
||||
* virer le rediret vers /site pour avoir gnuragist.es/index.html
|
||||
* passer en revue les warning dans le diagnostic Yunohost (System configuration)
|
||||
|
||||
## contenu à reprendre
|
||||
|
||||
[ ] https://wiki.gnuragist.es/blog:en_couche
|
||||
[ ] https://wiki.gnuragist.es/documentation:borg
|
||||
[ ] https://wiki.gnuragist.es/documentation:gitea:ldap-ssl
|
||||
[ ] https://wiki.gnuragist.es/documentation:gitea:remote-support-script
|
||||
[ ] https://wiki.gnuragist.es/notes:quoi-pour-qui
|
||||
[x] https://wiki.gnuragist.es/notes:certificate-renewal-fail
|
||||
[ ] https://wiki.gnuragist.es/notes:a-propos
|
||||
[ ] https://ps.zoethical.org/t/gnuragistes-entre-benevolat-et-remuneration/3838
|
||||
[ ] https://ps.zoethical.org/t/gnuragistes-dou-ca-vient-et-vers-ou-ca-va/3746
|
||||
[ ] https://ps.zoethical.org/t/gnuragistes-entre-benevolat-et-remuneration/3838
|
||||
|
||||
## Ressources
|
||||
|
||||
* [ForkAwsome cheatsheet](https://forkaweso.me/Fork-Awesome/cheatsheet/)
|
||||
|
63
content/notes/test.md
Normal file
63
content/notes/test.md
Normal file
@ -0,0 +1,63 @@
|
||||
---
|
||||
title: certificate-renewal-fail
|
||||
date: 2021-01-20
|
||||
---
|
||||
|
||||
issuing a certificate via yunohost's webinterface, or commandline (ssh)
|
||||
|
||||
yunohost domain cert-renew www.mydomain.be
|
||||
|
||||
gives this error
|
||||
|
||||
Error: Domain www.mydomain.be does not seem to be accessible through HTTP. Please check the 'Web' category in the diagnosis for more info. (If you know what you are doing, use '--no-checks' to turn off those checks.)
|
||||
|
||||
|
||||
issue is i think the nginx redirection settings of custom webapp apps (http:// requests get forwarded to https:// )
|
||||
|
||||
eg. in
|
||||
/etc/nginx/conf.d/www.mydomain.be.d/wordpress.conf
|
||||
|
||||
i commented following ‘rewrite’ https settings (you can use octothorp '#' character on the beginning of the line)
|
||||
|
||||
|
||||
#if ($scheme = http) {
|
||||
#rewrite ^ https://$server_name$request_uri? permanent;
|
||||
#}
|
||||
|
||||
then restart nginx
|
||||
|
||||
systemctl reload nginx
|
||||
|
||||
|
||||
and have a quick test (from another computer)
|
||||
|
||||
curl http://www.mydomain.be
|
||||
200 ok
|
||||
|
||||
yunohost domain cert-renew www.mydomain.be --no-check
|
||||
|
||||
( or 'yunohost domain **cert-install** mydomain.be --no-checks' if there was a selfsigned cert and you want to get an letsencrypt issued one)
|
||||
|
||||
|
||||
after this, reset the changes in the nginx configuration & reload nginx...
|
||||
|
||||
mais tuto bene a la fin
|
||||
toutlemonde content :
|
||||
|
||||
test with curl (on laptop)
|
||||
|
||||
<code>
|
||||
|
||||
ptr@eternit:~$ curl http://www.mydomain.be
|
||||
<html>
|
||||
<head><title>301 Moved Permanently</title></head>
|
||||
<body bgcolor="white">
|
||||
<center><h1>301 Moved Permanently</h1></center>
|
||||
<hr><center>nginx</center>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
ptr@eternit:~$ curl https://www.mydomain.be
|
||||
<!doctype html>
|
||||
...
|
||||
</code>
|
@ -1,8 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*- #
|
||||
|
||||
TOOLBOX = False # Displays some variables from toolbox.html
|
||||
|
||||
AUTHOR = 'Gnuragistes'
|
||||
SITENAME = 'Gnuragist.es'
|
||||
SITEURL = 'https://gnuragist.es'
|
||||
@ -52,7 +50,9 @@ THEME = 'template/gnuragistes'
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
#RELATIVE_URLS = True
|
||||
|
||||
|
||||
DISPLAY_PAGES_ON_MENU = True
|
||||
# Pour ignorer le contenu de template/gnuragistes/static/css/Fork-Awesome/.git et tout ce qui est .git
|
||||
IGNORE_FILES = ['.git']
|
||||
|
||||
# Pour ignorer les contenus de
|
||||
# - template/gnuragistes/static/css/Fork-Awesome/.git et tout ce qui est .git
|
||||
# - le conetenu de /content/notes ATTENTION que ce dossier se retrouvera tout de même publiquement dans le gitea !
|
||||
IGNORE_FILES = ['.git','notes']
|
@ -1,22 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ article.shorttitle }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="node node-full node-page node-page--services">
|
||||
<h1>{{ article.title }}</h1>
|
||||
{{ article.content }}
|
||||
|
||||
<footer>
|
||||
<p class="services-common">
|
||||
Afin de bénéficier de ce service, il est nécessaire d'être <a href="/ressources/adherer.html">membre de l'association</a>,<br />
|
||||
puis de <a href="/pages/contact.html">contacter le bureau</a> pour demander l'abonnement à un service.
|
||||
</p>
|
||||
|
||||
<p class="services-return">
|
||||
<a href="/pages/services.html">
|
||||
<i class="fa fa-caret-left"></i> Tous les services proposés par FAImaison
|
||||
</a>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
{% endblock %}
|
@ -1,6 +0,0 @@
|
||||
<div id="toolbox" class="toolbox">
|
||||
<b>Toolbox…</b><br />
|
||||
page_name = {{ page_name }}<br />
|
||||
output_file = {{ output_file }}<br />
|
||||
slug = {{ slug }}<br />
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user