Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
9b435f5a
Unverified
Commit
9b435f5a
authored
3 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
add vanity host before puppet, otherwise links break
parent
d1b7f498
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/static-component.md
+13
-13
13 additions, 13 deletions
howto/static-component.md
with
13 additions
and
13 deletions
howto/static-component.md
+
13
−
13
View file @
9b435f5a
...
...
@@ -122,6 +122,19 @@ This procedure is common to all cases:
5.
remove the
`sudo`
rules for the role user
6.
If we
*do*
want to keep a vanity site for the redirection, we
should also do this:
* add an entry to `roles::static_mirror_web_vanity`, in the
`ssl::service` block of
`modules/roles/manifests/static_mirror_web_vanity.pp`
* add a redirect in the template
(`modules/roles/templates/static-mirroring/vhost/vanity-vhosts.erb`),
for example:
Use vanity-host onionperf.torproject.org ^/(.*)$ https://gitlab.torproject.org/tpo/metrics/team/-/wikis/onionperf
6.
deploy the changes globally:
ssh staticiforme puppet agent -t
...
...
@@ -147,19 +160,6 @@ This procedure is common to all cases:
hosts: global
servicegroups: mirror
If we
*do*
want to keep a vanity site for the redirection, we should
also do this:
1.
add an entry to
`roles::static_mirror_web_vanity`
, in the
`ssl::service`
block of
`modules/roles/manifests/static_mirror_web_vanity.pp`
2.
add a redirect in the template
(
`modules/roles/templates/static-mirroring/vhost/vanity-vhosts.erb`
),
for example:
Use vanity-host onionperf.torproject.org ^/(.*)$ https://gitlab.torproject.org/tpo/metrics/team/-/wikis/onionperf
If we do
*not*
want to keep a vanity site, we should also do this:
2.
remove the host to DNS, if not already present, see
[
howto/dns
](
howto/dns
)
. this
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment