Skip to content
Snippets Groups Projects
Commit f20cb5f0 authored by David Douard's avatar David Douard
Browse files

Add a (test) mirror skin to the web app

Static assets used by the mirror skin configuration are deployed in
the web service using `docker config` entries; this is not really a practical
solution for a production deployment scheme, but it is simpler for
testing purpose.
parent 5de47b98
No related branches found
No related tags found
1 merge request!9Add a (test) mirror skin to the web app
Pipeline #8450 passed
conf/assets/logo_partner.png

2.6 KiB

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="logo"
viewBox="0 0 332 99.78"
version="1.1"
sodipodi:docname="logo_partner.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
inkscape:export-filename="logo_partner.png"
inkscape:export-xdpi="52.298447"
inkscape:export-ydpi="52.298447"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview9"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="1.4299821"
inkscape:cx="204.54801"
inkscape:cy="73.427493"
inkscape:window-width="1257"
inkscape:window-height="1027"
inkscape:window-x="659"
inkscape:window-y="22"
inkscape:window-maximized="1"
inkscape:current-layer="logo" />
<defs
id="defs4">
<style
id="style2">
.cls-1 {
fill: #195ba2;
}
</style>
</defs>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:114.239px;line-height:1.25;font-family:'Latin Modern Sans Quotation';-inkscape-font-specification:'Latin Modern Sans Quotation, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#195ba2;fill-opacity:1;stroke-width:1"
x="-5.7119098"
y="80.537918"
id="text346"
transform="scale(0.8293716,1.2057321)"><tspan
sodipodi:role="line"
id="tspan344"
x="-5.7119098"
y="80.537918"
style="fill:#195ba2;fill-opacity:1;stroke-width:1">TEST</tspan></text>
</svg>
<a href="https://whatever.sdfa3.org/">TEST</a> &mdash;
Copyright (C), Software Heritage.
License: <a href="https://www.gnu.org/licenses/agpl.html">GNU
AGPLv3+</a>.
<br/>
<a href="/legal">Legal notes</a>&nbsp;&nbsp;::&nbsp;
{% if "swh.web.jslicenses" in SWH_DJANGO_APPS %}
<a href="{% url 'jslicenses' %}" rel="jslicense">JavaScript license information</a>
{% endif %}::&nbsp;
<a href="{% url 'api-1-homepage' %}">Web API</a>
<div class="p-3">
<h4>TEST Mirror</h4>
<p>
This is a TEST mirror as part of their commitment
to preserving and promoting open-source software, allowing the Software
Heritage international network of mirrors to ensure accessibility and
preservation of such software for future generations.
</p>
</div>
......@@ -63,3 +63,40 @@ throttling:
default: 120/h
exempted_networks:
- 0.0.0.0/0
# Extra configuration for a mirror version of swh-web
# top bar can have custom links and donate link
top_bar:
links:
Home: https://whatever.sdfa3.org/
# donate_link:
# to display the status.io widget in the top bar
status:
{}
# server_url: https://status.example.org/
# json_path: 1.0/status/<id>
# matomo can optionally be used
matomo:
{}
# url:
# site_id:
# most of django apps must be disabled when running a mirror
swh_extra_django_apps:
- swh.web.badges
- swh.web.jslicenses
- swh.web.vault
show_corner_ribbon: false
# mirror partner specific configuration
mirror_config:
partner_name: "TEST"
partner_url: https://whatever.sdfa3.org/
static_path: /etc/softwareheritage/mirror/static
partner_logo_static_path: logo_partner.png
templates_path: /etc/softwareheritage/mirror/templates
......@@ -74,6 +74,12 @@ services:
configs:
- source: web
target: /etc/softwareheritage/config.yml
- source: web-mirror-logo
target: /etc/softwareheritage/mirror/static/logo_partner.png
- source: web-mirror-footer
target: /etc/softwareheritage/mirror/templates/mirror-footer.html
- source: web-mirror-homepage
target: /etc/softwareheritage/mirror/templates/mirror-homepage.html
command: web
environment:
PGCFG_0: swh-web
......@@ -575,6 +581,12 @@ configs:
file: conf/vault-worker.yml
web:
file: conf/web.yml
web-mirror-logo:
file: conf/assets/logo_partner.png
web-mirror-footer:
file: conf/assets/mirror-footer.html
web-mirror-homepage:
file: conf/assets/mirror-homepage.html
search:
file: conf/search.yml
search-journal-client:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment