Change to a profile style page, added post about multiple git repos. Need to write script to auto-update blog posts.

This commit is contained in:
Norm Rasmussen
2023-09-22 17:44:49 -04:00
parent a6586baf38
commit 2d1410bf45
32 changed files with 1758 additions and 242 deletions

View File

@ -1,6 +1,28 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
tags = []
+++
---
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
date: {{ .Date }}
tags: [""]
author: "Me"
showToc: true
TocOpen: false
draft: false
hidemeta: false
description: '{{ .File.ContentBaseName }}'
disableHLJS: true # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
---

28
archetypes/page.md Normal file
View File

@ -0,0 +1,28 @@
---
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
date: {{ .Date }}
tags: [""]
author: "Me"
showToc: true
TocOpen: false
draft: false
hidemeta: false
description: '{{ .File.ContentBaseName }}'
disableHLJS: true # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
---

View File

@ -1,9 +1,34 @@
+++
title = 'Trouble Hosting Hugo with Nginx'
date = 2023-09-20T11:33:22-04:00
draft = false
tags = ["tips & tricks", "self-hosted", "troubleshooting" ]
+++
---
title: 'Trouble Hosting Hugo with Nginx'
date: 2023-09-20T11:33:22-04:00
draft: false
tags: ["git", "backups", "commandline"]
author: "Me"
showToc: true
TocOpen: false
draft: false
hidemeta: false
description: "Learn one way to push your git changes to multiple remote repositories."
disableHLJS: false # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
---
## Intro
For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not
loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse
@ -19,6 +44,8 @@ same sites and posts I found the day before! It was getting frustrating.
Wouldn't you know... it was one of the simplest solutions that got it all working. Here's a breakdown of what I was seeing
and my hypothesis.
## Errors
*Console Errors:*
* Incorrect MIME type --> `css` files being set as `text/html` type.
@ -53,6 +80,8 @@ was the very first I clicked on, so I owe them my thanks since their site was th
You can find a list of all the blogs I stumbled upon in this weird and fluctuating journey of doing something as simple as
sharing my static files on an nginx web server.
## Solution
In the end, [newbs.rocks blog post](https://newbs.rocks/posts/hugo-setup/) on setting up Hugo with nginx provided me a config
example that worked for my setup. I think part of what happened was that as I was cycling through all the blog posts and
StackOverflow posts, I would remove one or two lines (usually the one or two I changed from the previous post's
@ -68,7 +97,8 @@ very likely that whatever you're facing isn't isolated to just you.
Now that I have this up and running, I need to write (and post!) a script that will pull from my repo, change directory
ownership, and reload nginx.
### Working nginx config file {#nginx-config}
## Resources
### Working Nginx Config File {#nginx-config}
```config
# ------------------------------------------------------------
@ -107,7 +137,7 @@ server {
}
```
### Blogs and Sites I used
### Blogs and Sites
* [Gideon Wolfe - Deploying a static Hugo site with NGINX](https://gideonwolfe.com/posts/sysadmin/hugonginx/)
* [Pvera - Deploying a simple static website using Nginx and Hugo](https://pvera.net/posts/create-site-nginx-hugo/)

View File

@ -0,0 +1,83 @@
---
title: 'Pushing a Single Local Git Repo to Multiple Remote Repos'
date: 2023-09-22T15:07:10-04:00
tags: ["git", "backups", "commandline"]
author: "Me"
showToc: true
TocOpen: false
draft: false
hidemeta: false
description: "Learn one way to push your git changes to multiple remote repositories."
disableHLJS: false # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
---
## Why push to multiple repos?
Do want to use both Github & and a Self-hosted Git Repo? Here's how I've been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my
case, I've been running [Gitea](https://gitea.com/) for a few years now and have been really satisfied with everything (except
for that one time that an update broke all my templates).
At the same time, there's the entire social element that comes with Github along with having your public repositories
available in a place that other developers are already spending time on. Instead of adding, committing, commenting, and
pushing on two different repos, here's how I run all those commands just once and push it to both repos.
_Note: An import git note to remember is that you can only _push_ to multiple remote repositories. You'll have to select
which repo you want to be the main pull repository. Have this be `remote-url-one` in the below instructions._
## Command Line Instructions
These instructions come after you initialize the repo in your directory. Make sure you have both of your remote git URLs
handy at this point!
```zsh
git remote add {{ remote-name }} {{ remote-url-one }}
git remote set-url --add --push {{ remote-name }} {{ remote-url-one }}
git remote set-url --add --push {{ remote-name }} {{ remote-url-two }}
```
To confirm that everything worked as expected, run `git remote -v` to check your remote repos. You should see one repo in
there twice, once for `(push)` and once for `(fetch)`.
I use the remote name "all" for multiple repos, so here's what my `git remote -v` returns:
```zsh
> git remote -v
all https://git.rsmsn.co/Normanras/rsmsn_blog.git (fetch)
all https://git.rsmsn.co/Normanras/rsmsn_blog.git (push)
all https://github.com/Normanras/rsmsn_blog.git (push)
all https://git.rsmsn.co/Normanras/rsmsn_ddblog.git (push)
```
To now push to your repositories, after adding and committing run `git push {{ remote-name }} --all`. My command is
`git push all --all` (see why I use all, now?)
Here's the man page description on the `--all` flag:
```zsh
--all
Push all branches (i.e. refs under refs/heads/); cannot be used
Instead of naming each ref to push, specifies that all refs under
end, locally updated refs will be force updated on the remote end,
Do everything except actually send the updates.
same as prefixing all refs with a colon.
```
And that's it! You should be able to push everything to both of your repos fairly easily now with this new set commands.

View File

@ -1,18 +1,42 @@
+++
title = 'Tutorial: Move from NginxProxyManager to Nginx'
date = 2023-08-05T15:23:51-05:00
draft = false
tags = ["tutorial", "self-hosted", ]
+++
---
title: 'Tutorial: Move from NginxProxyManager to Nginx'
date: 2023-08-05T15:23:51-05:00
draft: false
tags: ["git", "backups", "commandline"]
author: "Me"
showToc: true
TocOpen: false
draft: false
hidemeta: false
description: "Learn one way to push your git changes to multiple remote repositories."
disableHLJS: false # to disable highlightjs
disableShare: false
disableHLJS: false
hideSummary: false
searchHidden: true
ShowReadingTime: true
ShowBreadCrumbs: true
ShowPostNavLinks: true
ShowWordCount: true
ShowRssButtonInSectionTermList: true
UseHugoToc: true
cover:
image: "<image path/url>" # image path/url
alt: "<alt text>" # alt text
caption: "<text>" # display caption under cover
relative: false # when using page bundles set this to true
hidden: true # only hide on current single page
---
## Goal
A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for [this reddit
post](https://www.reddit.com/r/selfhosted/comments/15j4v80/minitutorial_migrating_from_nginx_proxy_manager/) and to post this [my Github profile](https://github.com/Normanras/Npm_to_Nginx). Thought my website would also be a good place to share it for any passers-by.
## Goal
To give clear instructions to help users migrate from using [Nginx Proxy Manager](https://nginxproxymanager.com/) (NPM) to standard [Nginx](https://docs.nginx.com/). This tutorial is not exhaustive and there are many other implementations of this transition. I would recommend checking out the many Nginx [Documentation Sites](http://nginx.org/en/docs/) and tutorials to learn more.
### Introduction
## Introduction
If you're anything like me and you got into the self-hosted/homelab/diy game sometime within the last 5 years, you've likely been recommended to use Nginx Proxy Manager as one of the choice Reverse Proxy services. If you've also been paying attention to various self-hosted communities, you may have also come across Christian Lempa's Video on [trusting smaller self hosted projects and tools](https://youtu.be/uaixCKTaqY0).
@ -22,7 +46,7 @@ Whether you follow Christian away from NPM or not, it dawned on me that while NP
*Contributing: This is not all encompassing of Nginx possibilities. Including instructions for various installation methods, using OpenResty, and any other migrations or use cases would help the community. If you'd like to add in additional information on how to migrate from NPM to Nginx, that is welcome. Simply submit a PR with your steps.*
### TL;DR - Quick Steps
## TL;DR - Quick Steps
1. Copy the following contents (including sub-directories) from the NPM `/data/nginx` directory to the Nginx `/etc/nginx` folder:
@ -42,7 +66,7 @@ Whether you follow Christian away from NPM or not, it dawned on me that while NP
5. Test your changes with `nginx -t`. Make appropriate changes if there are error messages.
### Pre-requisites & Assumptions
## Pre-requisites & Assumptions
I am using an Ubuntu VM with NPM and it's db as a Docker Container while Nginx is installed natively on the machine. You don't have to use this setup exactly, but I am making a few assumptions as to what you should have access to before you begin. I am also using custom SSL certs, but theoretically, the transition should be the same when using Lets Encrypt.
@ -57,11 +81,11 @@ I've added some example files to show before and after changes to this repo and
* For a linux install, they should be accessible at `/etc/nginx`.
* You know how to edit files at the command line using `nano`, `vi`, `vim`, `neovim`, `emacs`, or something else.
### Nginx Files
## Nginx Files
Nginx uses the `nginx.conf` file and within that file, it will include your proxy files. These exist under `./nginx/sites-enabled/`. In the main `nginx.conf` file, the line `include /etc/nginx/sites-enabled/*;` will bring in those files to the config file, making the proxies accessible.
### How to Transition - Detailed Version
## How to Transition - Detailed Version
1. Since NPM uses Nginx under the hood, they are both, by default, going to try and use ports 80 and 443 to serve up your apps and content. Turn off both systems.
@ -120,13 +144,13 @@ nginx: configuration file /etc/nginx/nginx.conf test is successful
And that's it! You can now restart your nginx service on the host and access all your sites just as if you were using Nginx Proxy Manager! Make sure you take a look at your logs and system's status should nginx fail to start.
### Additional Information/Appendix
## Additional Information/Appendix
#### File Trees for NPM (in container) and Nginx (on host)
### File Trees for NPM (in container) and Nginx (on host)
*I did not expand every directory in these trees. Only the ones that are pertinent for reference in this tutorial.*
#### NGINX
### NGINX
```bash
├── conf.d
@ -191,7 +215,7 @@ And that's it! You can now restart your nginx service on the host and access all
└── win-utf
```
#### NPM
### NPM
```bash
├── data

View File

@ -2,20 +2,34 @@ baseURL: '/'
uglyURLs: true
relativeURLs: true
languageCode: 'en-us'
title: 'Rsmsn Blog'
title: "Norm-Hosted \U0001F4BE"
subtitle: 'A mostly technical blog & series of experiences working in tech and my homelab'
theme: "PaperMod"
themesDir: './themes/'
paginate: 7
googleAnalytics: G-X8VR5M0K20
params:
env: production
title: RsmsnBlog
description: "A site to share self hosted tutorials, troubleshooting, and tips/tricks."
keywords: [Blog, Website, Resume, Interests, Portfolio]
title: Norm-Hosted
description: 'A mostly technical blog & series of experiences working in tech and my homelab'
keywords: [Blog, Website, Resume, Interests, Portfolio, Selfhosted, DIY]
author: Norm Rasmussen
DateFormat: "January 2, 2006"
defaultTheme: dark
assets:
favicon: "./static/favicon.ico"
favicon32x32: "./static/rsmsncircles.ico"
favicon: "favicon.ico"
favicon32x32: "rsmsncircles.ico"
homeInfoParams:
Title: "Hey there, stranger! \U0001F44B"
Content: Welcome to my running collection of tips, tricks, and scripts about self-hosting and DIY.
socialIcons:
- name: "Mastodon"
url: "https://fosstodon.org/@notnorm"
- name: "Github"
url: "https://github.com/Normanras"
# analytics:
# google:
# SiteVerificationTag:

View File

@ -5,15 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>404 Page not found | Rsmsn Blog</title>
<title>404 Page not found | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks.">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="./404.html">
<link crossorigin="anonymous" href="./assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="./static/favicon.ico">
<link rel="icon" href="./favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="./rsmsncircles.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<link rel="mask-icon" href="./safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
@ -26,14 +26,25 @@
}
</style>
</noscript><meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks." />
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/404.html" /><meta property="og:site_name" content="RsmsnBlog" />
<meta property="og:url" content="/404.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="404 Page not found"/>
<meta name="twitter:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks."/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
@ -48,7 +59,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
<a href="./" accesskey="h" title="Rsmsn Blog (Alt + H)">Rsmsn Blog</a>
<a href="./" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@ -81,7 +92,7 @@
</main>
<footer class="footer">
<span>&copy; 2023 <a href="./">Rsmsn Blog</a></span>
<span>&copy; 2023 <a href="./">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &

View File

@ -5,15 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Categories | Rsmsn Blog</title>
<title>Categories | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks.">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="./categories.html">
<link crossorigin="anonymous" href="./assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="./static/favicon.ico">
<link rel="icon" href="./favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="./rsmsncircles.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<link rel="mask-icon" href="./safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
@ -27,14 +27,25 @@
}
</style>
</noscript><meta property="og:title" content="Categories" />
<meta property="og:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks." />
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="Categories" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/categories.html" /><meta property="og:site_name" content="RsmsnBlog" />
<meta property="og:url" content="/categories.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Categories"/>
<meta name="twitter:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks."/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
@ -49,7 +60,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
<a href="./" accesskey="h" title="Rsmsn Blog (Alt + H)">Rsmsn Blog</a>
<a href="./" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@ -87,7 +98,7 @@
</main>
<footer class="footer">
<span>&copy; 2023 <a href="./">Rsmsn Blog</a></span>
<span>&copy; 2023 <a href="./">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Categories on Rsmsn Blog</title>
<title>Categories on Norm-Hosted 💾</title>
<link>/categories.html</link>
<description>Recent content in Categories on Rsmsn Blog</description>
<description>Recent content in Categories on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language><atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>

View File

@ -6,15 +6,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Rsmsn Blog</title>
<meta name="keywords" content="Blog, Website, Resume, Interests, Portfolio">
<meta name="description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks.">
<title>Norm-Hosted 💾</title>
<meta name="keywords" content="Blog, Website, Resume, Interests, Portfolio, Selfhosted, DIY">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="./">
<link crossorigin="anonymous" href="./assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="./static/favicon.ico">
<link rel="icon" href="./favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="./rsmsncircles.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<link rel="mask-icon" href="./safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
@ -28,25 +28,36 @@
}
</style>
</noscript><meta property="og:title" content="Rsmsn Blog" />
<meta property="og:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks." />
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="Norm-Hosted 💾" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/" /><meta property="og:site_name" content="RsmsnBlog" />
<meta property="og:url" content="/" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Rsmsn Blog"/>
<meta name="twitter:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks."/>
<meta name="twitter:title" content="Norm-Hosted 💾"/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Rsmsn Blog",
"name": "Norm-Hosted 💾",
"url": "/",
"description": "A site to share self hosted tutorials, troubleshooting, and tips/tricks.",
"thumbnailUrl": "/static/favicon.ico",
"description": "A mostly technical blog \u0026amp; series of experiences working in tech and my homelab",
"thumbnailUrl": "/favicon.ico",
"sameAs": [
"https://fosstodon.org/@notnorm", "https://github.com/Normanras"
]
}
</script>
@ -63,7 +74,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
<a href="./" accesskey="h" title="Rsmsn Blog (Alt + H)">Rsmsn Blog</a>
<a href="./" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@ -92,35 +103,86 @@
</nav>
</header>
<main class="main">
<article class="first-entry home-info">
<header class="entry-header">
<h1>Hey there, stranger! 👋</h1>
</header>
<div class="entry-content">
Welcome to my running collection of tips, tricks, and scripts about self-hosting and DIY.
</div>
<footer class="entry-footer">
<div class="social-icons">
<a href="https://fosstodon.org/@notnorm" target="_blank" rel="noopener noreferrer me" title="Mastodon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M21.58 13.913c-.29 1.469-2.592 3.121-5.238 3.396-1.379.184-2.737.368-4.185.276-2.368-.092-4.237-.551-4.237-.551 0 .184.014.459.043.643.308 2.294 2.317 2.478 4.22 2.57 1.922 0 3.633-.46 3.633-.46l.079 1.653s-1.344.734-3.738.918c-1.32.091-2.96-.092-4.869-.551-4.14-1.102-4.853-5.507-4.961-10.005-.034-1.285-.013-2.57-.013-3.58 0-4.589 3-5.966 3-5.966 1.513-.734 4.11-1.01 6.808-1.01h.067c2.699 0 5.296.276 6.81 1.01 0 0 3 1.377 3 5.967 0 0 .037 3.304-.419 5.69"
stroke="currentColor" />
<path
d="M17.832 8.633v5h-1.978V8.78c0-1.023-.43-1.542-1.29-1.542-.95 0-1.427.616-1.427 1.834v2.655H11.17V9.072c0-1.218-.476-1.834-1.427-1.834-.86 0-1.29.52-1.29 1.542v4.852H6.475V8.633c0-1.022.26-1.834.782-2.434.538-.6 1.243-.909 2.118-.909 1.012 0 1.779.39 2.286 1.169l.492.827.493-.827c.507-.78 1.274-1.169 2.286-1.169.875 0 1.58.308 2.118.909.522.6.782 1.412.782 2.434"
fill="currentColor" stroke="none" />
</svg>
</a>
<a href="https://github.com/Normanras" target="_blank" rel="noopener noreferrer me" title="Github">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
</a>
</div>
<article class="first-entry">
</footer>
</article>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Pushing a Single Local Git Repo to Multiple Remote Repos
</h2>
</header>
<div class="entry-content">
<p>Why push to multiple repos? Do want to use both Github &amp; and a Self-hosted Git Repo? Heres how Ive been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates)....</p>
</div>
<footer class="entry-footer"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Pushing a Single Local Git Repo to Multiple Remote Repos" href="./posts/multiple_git_remotes.html"></a>
</article>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Trouble Hosting Hugo with Nginx
</h2>
</header>
<div class="entry-content">
<p>For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
<p>Intro For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
</div>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;Norm Rasmussen</footer>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;888 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Trouble Hosting Hugo with Nginx" href="./posts/hosting_hugo_troubles.html"></a>
</article>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Tutorial: Move from NginxProxyManager to Nginx
</h2>
</header>
<div class="entry-content">
<p>A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
Goal To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
<p>Goal A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
</div>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;Norm Rasmussen</footer>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1635 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Tutorial: Move from NginxProxyManager to Nginx" href="./posts/npm_to_nginx_tutorial.html"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="./">Rsmsn Blog</a></span>
<span>&copy; 2023 <a href="./">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &

View File

@ -1,19 +1,28 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Rsmsn Blog</title>
<title>Norm-Hosted 💾</title>
<link>/</link>
<description>Recent content on Rsmsn Blog</description>
<description>Recent content on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Wed, 20 Sep 2023 11:33:22 -0400</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Pushing a Single Local Git Repo to Multiple Remote Repos</title>
<link>/posts/multiple_git_remotes.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/posts/multiple_git_remotes.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Trouble Hosting Hugo with Nginx</title>
<link>/posts/hosting_hugo_troubles.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<guid>/posts/hosting_hugo_troubles.html</guid>
<description>For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and I&amp;rsquo;m happy to share some reverse proxy nginx config files.</description>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
@ -22,8 +31,7 @@
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/posts/npm_to_nginx_tutorial.html</guid>
<description>A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
Goal To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition.</description>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
</channel>

View File

@ -5,15 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Posts | Rsmsn Blog</title>
<title>Posts | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="Posts - Rsmsn Blog">
<meta name="description" content="Posts - Norm-Hosted 💾">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="./posts.html">
<link crossorigin="anonymous" href="./assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="./static/favicon.ico">
<link rel="icon" href="./favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="./rsmsncircles.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<link rel="mask-icon" href="./safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
@ -27,14 +27,25 @@
}
</style>
</noscript><meta property="og:title" content="Posts" />
<meta property="og:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks." />
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="Posts" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/posts.html" /><meta property="og:site_name" content="RsmsnBlog" />
<meta property="og:url" content="/posts.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Posts"/>
<meta name="twitter:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks."/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
<script type="application/ld+json">
@ -64,7 +75,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
<a href="./" accesskey="h" title="Rsmsn Blog (Alt + H)">Rsmsn Blog</a>
<a href="./" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@ -100,33 +111,52 @@
</header>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Pushing a Single Local Git Repo to Multiple Remote Repos
</h2>
</header>
<div class="entry-content">
<p>Why push to multiple repos? Do want to use both Github &amp; and a Self-hosted Git Repo? Heres how Ive been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates)....</p>
</div>
<footer class="entry-footer"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Pushing a Single Local Git Repo to Multiple Remote Repos" href="./posts/multiple_git_remotes.html"></a>
</article>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Trouble Hosting Hugo with Nginx
</h2>
</header>
<div class="entry-content">
<p>For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
<p>Intro For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
</div>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;Norm Rasmussen</footer>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;888 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Trouble Hosting Hugo with Nginx" href="./posts/hosting_hugo_troubles.html"></a>
</article>
<article class="post-entry">
<figure class="entry-cover"><img loading="lazy" src="./%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Tutorial: Move from NginxProxyManager to Nginx
</h2>
</header>
<div class="entry-content">
<p>A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
Goal To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
<p>Goal A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
</div>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;Norm Rasmussen</footer>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1635 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Tutorial: Move from NginxProxyManager to Nginx" href="./posts/npm_to_nginx_tutorial.html"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="./">Rsmsn Blog</a></span>
<span>&copy; 2023 <a href="./">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &

File diff suppressed because one or more lines are too long

View File

@ -1,19 +1,28 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Posts on Rsmsn Blog</title>
<title>Posts on Norm-Hosted 💾</title>
<link>/posts.html</link>
<description>Recent content in Posts on Rsmsn Blog</description>
<description>Recent content in Posts on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Wed, 20 Sep 2023 11:33:22 -0400</lastBuildDate><atom:link href="/posts/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Pushing a Single Local Git Repo to Multiple Remote Repos</title>
<link>/posts/multiple_git_remotes.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/posts/multiple_git_remotes.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Trouble Hosting Hugo with Nginx</title>
<link>/posts/hosting_hugo_troubles.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<guid>/posts/hosting_hugo_troubles.html</guid>
<description>For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and I&amp;rsquo;m happy to share some reverse proxy nginx config files.</description>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
@ -22,8 +31,7 @@
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/posts/npm_to_nginx_tutorial.html</guid>
<description>A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
Goal To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition.</description>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
</channel>

View File

@ -0,0 +1,300 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Pushing a Single Local Git Repo to Multiple Remote Repos | Norm-Hosted 💾</title>
<meta name="keywords" content="git, backups, commandline">
<meta name="description" content="Learn one way to push your git changes to multiple remote repositories.">
<meta name="author" content="Me">
<link rel="canonical" href="../posts/multiple_git_remotes.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<script defer crossorigin="anonymous" src="../assets/js/highlight.f413e19d0714851f6474e7ee9632408e58ac146fbdbe62747134bea2fa3415e0.js" integrity="sha256-9BPhnQcUhR9kdOfuljJAjlisFG&#43;9vmJ0cTS&#43;ovo0FeA="
onload="hljs.initHighlightingOnLoad();"></script>
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="Pushing a Single Local Git Repo to Multiple Remote Repos" />
<meta property="og:description" content="Learn one way to push your git changes to multiple remote repositories." />
<meta property="og:type" content="article" />
<meta property="og:url" content="/posts/multiple_git_remotes.html" />
<meta property="og:image" content="/%3Cimage%20path/url%3E" /><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2023-09-22T15:07:10-04:00" />
<meta property="article:modified_time" content="2023-09-22T15:07:10-04:00" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="/%3Cimage%20path/url%3E" />
<meta name="twitter:title" content="Pushing a Single Local Git Repo to Multiple Remote Repos"/>
<meta name="twitter:description" content="Learn one way to push your git changes to multiple remote repositories."/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1 ,
"name": "Pushing a Single Local Git Repo to Multiple Remote Repos",
"item": "/posts/multiple_git_remotes.html"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Pushing a Single Local Git Repo to Multiple Remote Repos",
"name": "Pushing a Single Local Git Repo to Multiple Remote Repos",
"description": "Learn one way to push your git changes to multiple remote repositories.",
"keywords": [
"git", "backups", "commandline"
],
"articleBody": "Why push to multiple repos? Do want to use both Github \u0026 and a Self-hosted Git Repo? Heres how Ive been doing it!\nI really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates).\nAt the same time, theres the entire social element that comes with Github along with having your public repositories available in a place that other developers are already spending time on. Instead of adding, committing, commenting, and pushing on two different repos, heres how I run all those commands just once and push it to both repos.\nNote: An import git note to remember is that you can only push to multiple remote repositories. Youll have to select which repo you want to be the main pull repository. Have this be remote-url-one in the below instructions.\nCommand Line Instructions These instructions come after you initialize the repo in your directory. Make sure you have both of your remote git URLs handy at this point!\ngit remote add {{ remote-name }} {{ remote-url-one }} git remote set-url --add --push {{ remote-name }} {{ remote-url-one }} git remote set-url --add --push {{ remote-name }} {{ remote-url-two }} To confirm that everything worked as expected, run git remote -v to check your remote repos. You should see one repo in there twice, once for (push) and once for (fetch).\nI use the remote name “all” for multiple repos, so heres what my git remote -v returns:\n\u003e git remote -v all https://git.rsmsn.co/Normanras/rsmsn_blog.git (fetch) all https://git.rsmsn.co/Normanras/rsmsn_blog.git (push) all https://github.com/Normanras/rsmsn_blog.git (push) all https://git.rsmsn.co/Normanras/rsmsn_ddblog.git (push) To now push to your repositories, after adding and committing run git push {{ remote-name }} --all. My command is git push all --all (see why I use all, now?)\nHeres the man page description on the --all flag:\n--all Push all branches (i.e. refs under refs/heads/); cannot be used Instead of naming each ref to push, specifies that all refs under end, locally updated refs will be force updated on the remote end, Do everything except actually send the updates. same as prefixing all refs with a colon. And thats it! You should be able to push everything to both of your repos fairly easily now with this new set commands.\n",
"wordCount" : "403",
"inLanguage": "en",
"image":"/%3Cimage%20path/url%3E","datePublished": "2023-09-22T15:07:10-04:00",
"dateModified": "2023-09-22T15:07:10-04:00",
"author":{
"@type": "Person",
"name": "Me"
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "/posts/multiple_git_remotes.html"
},
"publisher": {
"@type": "Organization",
"name": "Norm-Hosted 💾",
"logo": {
"@type": "ImageObject",
"url": "/favicon.ico"
}
}
}
</script>
</head>
<body class=" dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="../" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
</ul>
</nav>
</header>
<main class="main">
<article class="post-single">
<header class="post-header">
<div class="breadcrumbs"><a href="../">Home</a></div>
<h1 class="post-title">
Pushing a Single Local Git Repo to Multiple Remote Repos
</h1>
<div class="post-description">
Learn one way to push your git changes to multiple remote repositories.
</div>
<div class="post-meta"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me
</div>
</header> <div class="toc">
<details >
<summary accesskey="c" title="(Alt + C)">
<span class="details">Table of Contents</span>
</summary>
<div class="inner"><nav id="TableOfContents">
<ul>
<li><a href="#why-push-to-multiple-repos">Why push to multiple repos?</a></li>
<li><a href="#command-line-instructions">Command Line Instructions</a></li>
</ul>
</nav>
</div>
</details>
</div>
<div class="post-content"><h2 id="why-push-to-multiple-repos">Why push to multiple repos?<a hidden class="anchor" aria-hidden="true" href="#why-push-to-multiple-repos">#</a></h2>
<p>Do want to use both Github &amp; and a Self-hosted Git Repo? Here&rsquo;s how I&rsquo;ve been doing it!</p>
<p>I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my
case, I&rsquo;ve been running <a href="https://gitea.com/">Gitea</a> for a few years now and have been really satisfied with everything (except
for that one time that an update broke all my templates).</p>
<p>At the same time, there&rsquo;s the entire social element that comes with Github along with having your public repositories
available in a place that other developers are already spending time on. Instead of adding, committing, commenting, and
pushing on two different repos, here&rsquo;s how I run all those commands just once and push it to both repos.</p>
<p><em>Note: An import git note to remember is that you can only <em>push</em> to multiple remote repositories. You&rsquo;ll have to select
which repo you want to be the main pull repository. Have this be <code>remote-url-one</code> in the below instructions.</em></p>
<h2 id="command-line-instructions">Command Line Instructions<a hidden class="anchor" aria-hidden="true" href="#command-line-instructions">#</a></h2>
<p>These instructions come after you initialize the repo in your directory. Make sure you have both of your remote git URLs
handy at this point!</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-zsh" data-lang="zsh"><span style="display:flex;"><span>git remote add <span style="color:#f92672">{{</span> remote-name <span style="color:#f92672">}}</span> <span style="color:#f92672">{{</span> remote-url-one <span style="color:#f92672">}}</span>
</span></span><span style="display:flex;"><span>git remote set-url --add --push <span style="color:#f92672">{{</span> remote-name <span style="color:#f92672">}}</span> <span style="color:#f92672">{{</span> remote-url-one <span style="color:#f92672">}}</span>
</span></span><span style="display:flex;"><span>git remote set-url --add --push <span style="color:#f92672">{{</span> remote-name <span style="color:#f92672">}}</span> <span style="color:#f92672">{{</span> remote-url-two <span style="color:#f92672">}}</span>
</span></span></code></pre></div><p>To confirm that everything worked as expected, run <code>git remote -v</code> to check your remote repos. You should see one repo in
there twice, once for <code>(push)</code> and once for <code>(fetch)</code>.</p>
<p>I use the remote name &ldquo;all&rdquo; for multiple repos, so here&rsquo;s what my <code>git remote -v</code> returns:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-zsh" data-lang="zsh"><span style="display:flex;"><span>&gt; git remote -v
</span></span><span style="display:flex;"><span>all https://git.rsmsn.co/Normanras/rsmsn_blog.git <span style="color:#f92672">(</span>fetch<span style="color:#f92672">)</span>
</span></span><span style="display:flex;"><span>all https://git.rsmsn.co/Normanras/rsmsn_blog.git <span style="color:#f92672">(</span>push<span style="color:#f92672">)</span>
</span></span><span style="display:flex;"><span>all https://github.com/Normanras/rsmsn_blog.git <span style="color:#f92672">(</span>push<span style="color:#f92672">)</span>
</span></span><span style="display:flex;"><span>all https://git.rsmsn.co/Normanras/rsmsn_ddblog.git <span style="color:#f92672">(</span>push<span style="color:#f92672">)</span>
</span></span></code></pre></div><p>To now push to your repositories, after adding and committing run <code>git push {{ remote-name }} --all</code>. My command is
<code>git push all --all</code> (see why I use all, now?)</p>
<p>Here&rsquo;s the man page description on the <code>--all</code> flag:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-zsh" data-lang="zsh"><span style="display:flex;"><span>--all
</span></span><span style="display:flex;"><span> Push all branches <span style="color:#f92672">(</span>i.e. refs under refs/heads/<span style="color:#f92672">)</span>; cannot be used
</span></span><span style="display:flex;"><span> Instead of naming each ref to push, specifies that all refs under
</span></span><span style="display:flex;"><span> end, locally updated refs will be force updated on the remote end,
</span></span><span style="display:flex;"><span> Do everything except actually send the updates.
</span></span><span style="display:flex;"><span> same as prefixing all refs with a colon.
</span></span></code></pre></div><p>And that&rsquo;s it! You should be able to push everything to both of your repos fairly easily now with this new set commands.</p>
</div>
<footer class="post-footer">
<ul class="post-tags">
<li><a href="../tags/git.html">git</a></li>
<li><a href="../tags/backups.html">backups</a></li>
<li><a href="../tags/commandline.html">commandline</a></li>
</ul>
<nav class="paginav">
<a class="next" href="../posts/hosting_hugo_troubles.html">
<span class="title">Next »</span>
<br>
<span>Trouble Hosting Hugo with Nginx</span>
</a>
</nav>
</footer>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="../">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -2,29 +2,29 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/posts.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
<loc>/tags/backups.html</loc>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/tags/commandline.html</loc>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/tags/git.html</loc>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/tags/self-hosted.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
<loc>/posts.html</loc>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/posts/multiple_git_remotes.html</loc>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/tags.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
</url><url>
<loc>/tags/tips-tricks.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
<lastmod>2023-09-22T15:07:10-04:00</lastmod>
</url><url>
<loc>/posts/hosting_hugo_troubles.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
</url><url>
<loc>/tags/troubleshooting.html</loc>
<lastmod>2023-09-20T11:33:22-04:00</lastmod>
</url><url>
<loc>/tags/tutorial.html</loc>
<lastmod>2023-08-05T15:23:51-05:00</lastmod>
</url><url>
<loc>/posts/npm_to_nginx_tutorial.html</loc>
<lastmod>2023-08-05T15:23:51-05:00</lastmod>

View File

@ -5,15 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Tags | Rsmsn Blog</title>
<title>Tags | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks.">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="./tags.html">
<link crossorigin="anonymous" href="./assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="./static/favicon.ico">
<link rel="icon" href="./favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="./static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="./rsmsncircles.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png">
<link rel="mask-icon" href="./safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
@ -27,14 +27,25 @@
}
</style>
</noscript><meta property="og:title" content="Tags" />
<meta property="og:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks." />
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="Tags" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/tags.html" /><meta property="og:site_name" content="RsmsnBlog" />
<meta property="og:url" content="/tags.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Tags"/>
<meta name="twitter:description" content="A site to share self hosted tutorials, troubleshooting, and tips/tricks."/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
@ -49,7 +60,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
<a href="./" accesskey="h" title="Rsmsn Blog (Alt + H)">Rsmsn Blog</a>
<a href="./" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@ -84,22 +95,19 @@
<ul class="terms-tags">
<li>
<a href="./tags/self-hosted.html">self-hosted <sup><strong><sup>2</sup></strong></sup> </a>
<a href="./tags/backups.html">backups <sup><strong><sup>3</sup></strong></sup> </a>
</li>
<li>
<a href="./tags/tips-tricks.html">tips &amp; tricks <sup><strong><sup>1</sup></strong></sup> </a>
<a href="./tags/commandline.html">commandline <sup><strong><sup>3</sup></strong></sup> </a>
</li>
<li>
<a href="./tags/troubleshooting.html">troubleshooting <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="./tags/tutorial.html">tutorial <sup><strong><sup>1</sup></strong></sup> </a>
<a href="./tags/git.html">git <sup><strong><sup>3</sup></strong></sup> </a>
</li>
</ul>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="./">Rsmsn Blog</a></span>
<span>&copy; 2023 <a href="./">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &

213
public/tags/backups.html Normal file
View File

@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>backups | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/backups.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="../tags/backups/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="backups" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/tags/backups.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="backups"/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="../" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>
backups
</h1>
</header>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Pushing a Single Local Git Repo to Multiple Remote Repos
</h2>
</header>
<div class="entry-content">
<p>Why push to multiple repos? Do want to use both Github &amp; and a Self-hosted Git Repo? Heres how Ive been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates)....</p>
</div>
<footer class="entry-footer"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Pushing a Single Local Git Repo to Multiple Remote Repos" href="../posts/multiple_git_remotes.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Trouble Hosting Hugo with Nginx
</h2>
</header>
<div class="entry-content">
<p>Intro For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
</div>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;888 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Trouble Hosting Hugo with Nginx" href="../posts/hosting_hugo_troubles.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Tutorial: Move from NginxProxyManager to Nginx
</h2>
</header>
<div class="entry-content">
<p>Goal A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
</div>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1635 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Tutorial: Move from NginxProxyManager to Nginx" href="../posts/npm_to_nginx_tutorial.html"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="../">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>backups on Norm-Hosted 💾</title>
<link>/tags/backups.html</link>
<description>Recent content in backups on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/tags/backups/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Pushing a Single Local Git Repo to Multiple Remote Repos</title>
<link>/posts/multiple_git_remotes.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/posts/multiple_git_remotes.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Trouble Hosting Hugo with Nginx</title>
<link>/posts/hosting_hugo_troubles.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<guid>/posts/hosting_hugo_troubles.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Tutorial: Move from NginxProxyManager to Nginx</title>
<link>/posts/npm_to_nginx_tutorial.html</link>
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/posts/npm_to_nginx_tutorial.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
</channel>
</rss>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>/tags/backups.html</title>
<link rel="canonical" href="../../../tags/backups.html">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=../../../tags/backups.html">
</head>
</html>

View File

@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>commandline | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/commandline.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="../tags/commandline/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="commandline" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/tags/commandline.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="commandline"/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="../" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>
commandline
</h1>
</header>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Pushing a Single Local Git Repo to Multiple Remote Repos
</h2>
</header>
<div class="entry-content">
<p>Why push to multiple repos? Do want to use both Github &amp; and a Self-hosted Git Repo? Heres how Ive been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates)....</p>
</div>
<footer class="entry-footer"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Pushing a Single Local Git Repo to Multiple Remote Repos" href="../posts/multiple_git_remotes.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Trouble Hosting Hugo with Nginx
</h2>
</header>
<div class="entry-content">
<p>Intro For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
</div>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;888 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Trouble Hosting Hugo with Nginx" href="../posts/hosting_hugo_troubles.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Tutorial: Move from NginxProxyManager to Nginx
</h2>
</header>
<div class="entry-content">
<p>Goal A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
</div>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1635 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Tutorial: Move from NginxProxyManager to Nginx" href="../posts/npm_to_nginx_tutorial.html"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="../">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>commandline on Norm-Hosted 💾</title>
<link>/tags/commandline.html</link>
<description>Recent content in commandline on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/tags/commandline/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Pushing a Single Local Git Repo to Multiple Remote Repos</title>
<link>/posts/multiple_git_remotes.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/posts/multiple_git_remotes.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Trouble Hosting Hugo with Nginx</title>
<link>/posts/hosting_hugo_troubles.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<guid>/posts/hosting_hugo_troubles.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Tutorial: Move from NginxProxyManager to Nginx</title>
<link>/posts/npm_to_nginx_tutorial.html</link>
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/posts/npm_to_nginx_tutorial.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
</channel>
</rss>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>/tags/commandline.html</title>
<link rel="canonical" href="../../../tags/commandline.html">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=../../../tags/commandline.html">
</head>
</html>

213
public/tags/git.html Normal file
View File

@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>git | Norm-Hosted 💾</title>
<meta name="keywords" content="">
<meta name="description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab">
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/git.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="../tags/git/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-X8VR5M0K20', { 'anonymize_ip': false });
}
</script>
<meta property="og:title" content="git" />
<meta property="og:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/tags/git.html" /><meta property="og:site_name" content="Norm-Hosted" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="git"/>
<meta name="twitter:description" content="A mostly technical blog &amp; series of experiences working in tech and my homelab"/>
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="../" accesskey="h" title="Norm-Hosted 💾 (Alt + H)">Norm-Hosted 💾</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>
git
</h1>
</header>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Pushing a Single Local Git Repo to Multiple Remote Repos
</h2>
</header>
<div class="entry-content">
<p>Why push to multiple repos? Do want to use both Github &amp; and a Self-hosted Git Repo? Heres how Ive been doing it!
I really enjoy self-hosting services that I use everyday. One of those includes a git-style version control software. In my case, Ive been running Gitea for a few years now and have been really satisfied with everything (except for that one time that an update broke all my templates)....</p>
</div>
<footer class="entry-footer"><span title='2023-09-22 15:07:10 -0400 EDT'>September 22, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;403 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Pushing a Single Local Git Repo to Multiple Remote Repos" href="../posts/multiple_git_remotes.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Trouble Hosting Hugo with Nginx
</h2>
</header>
<div class="entry-content">
<p>Intro For the last 3 days, I have been spending a few hours after working trying to figure out why my brand new Hugo site was not loading correctly on my sub-domain. For context, I use Nginx to host all my apps and servers, most of them using reverse proxy protocols such as $proxy_host, $forward_scheme, and $port. There are a few more and Im happy to share some reverse proxy nginx config files....</p>
</div>
<footer class="entry-footer"><span title='2023-09-20 11:33:22 -0400 EDT'>September 20, 2023</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;888 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Trouble Hosting Hugo with Nginx" href="../posts/hosting_hugo_troubles.html"></a>
</article>
<article class="post-entry tag-entry">
<figure class="entry-cover"><img loading="lazy" src="../%3Cimage%20path/url%3E" alt="">
</figure>
<header class="entry-header">
<h2>Tutorial: Move from NginxProxyManager to Nginx
</h2>
</header>
<div class="entry-content">
<p>Goal A Tutorial Repo for migrating your Nginx Proxy Manager proxy setup to Nginx. I wrote this originally for this reddit post and to post this my Github profile. Thought my website would also be a good place to share it for any passers-by.
To give clear instructions to help users migrate from using Nginx Proxy Manager (NPM) to standard Nginx. This tutorial is not exhaustive and there are many other implementations of this transition....</p>
</div>
<footer class="entry-footer"><span title='2023-08-05 15:23:51 -0500 -0500'>August 5, 2023</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1635 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Tutorial: Move from NginxProxyManager to Nginx" href="../posts/npm_to_nginx_tutorial.html"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="../">Norm-Hosted 💾</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

38
public/tags/git/index.xml Normal file
View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>git on Norm-Hosted 💾</title>
<link>/tags/git.html</link>
<description>Recent content in git on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/tags/git/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Pushing a Single Local Git Repo to Multiple Remote Repos</title>
<link>/posts/multiple_git_remotes.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/posts/multiple_git_remotes.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Trouble Hosting Hugo with Nginx</title>
<link>/posts/hosting_hugo_troubles.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<guid>/posts/hosting_hugo_troubles.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
<item>
<title>Tutorial: Move from NginxProxyManager to Nginx</title>
<link>/posts/npm_to_nginx_tutorial.html</link>
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/posts/npm_to_nginx_tutorial.html</guid>
<description>Learn one way to push your git changes to multiple remote repositories.</description>
</item>
</channel>
</rss>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>/tags/git.html</title>
<link rel="canonical" href="../../../tags/git.html">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=../../../tags/git.html">
</head>
</html>

View File

@ -1,45 +1,36 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Tags on Rsmsn Blog</title>
<title>Tags on Norm-Hosted 💾</title>
<link>/tags.html</link>
<description>Recent content in Tags on Rsmsn Blog</description>
<description>Recent content in Tags on Norm-Hosted 💾</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Wed, 20 Sep 2023 11:33:22 -0400</lastBuildDate><atom:link href="/tags/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Fri, 22 Sep 2023 15:07:10 -0400</lastBuildDate><atom:link href="/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>self-hosted</title>
<link>/tags/self-hosted.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<title>backups</title>
<link>/tags/backups.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/tags/self-hosted.html</guid>
<guid>/tags/backups.html</guid>
<description></description>
</item>
<item>
<title>tips &amp; tricks</title>
<link>/tags/tips-tricks.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<title>commandline</title>
<link>/tags/commandline.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/tags/tips-tricks.html</guid>
<guid>/tags/commandline.html</guid>
<description></description>
</item>
<item>
<title>troubleshooting</title>
<link>/tags/troubleshooting.html</link>
<pubDate>Wed, 20 Sep 2023 11:33:22 -0400</pubDate>
<title>git</title>
<link>/tags/git.html</link>
<pubDate>Fri, 22 Sep 2023 15:07:10 -0400</pubDate>
<guid>/tags/troubleshooting.html</guid>
<description></description>
</item>
<item>
<title>tutorial</title>
<link>/tags/tutorial.html</link>
<pubDate>Sat, 05 Aug 2023 15:23:51 -0500</pubDate>
<guid>/tags/tutorial.html</guid>
<guid>/tags/git.html</guid>
<description></description>
</item>

View File

@ -11,9 +11,9 @@
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/self-hosted.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../static/favicon.ico">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">

View File

@ -11,9 +11,9 @@
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/tips-tricks.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../static/favicon.ico">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">

View File

@ -11,9 +11,9 @@
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/troubleshooting.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../static/favicon.ico">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">

View File

@ -11,9 +11,9 @@
<meta name="author" content="Norm Rasmussen">
<link rel="canonical" href="../tags/tutorial.html">
<link crossorigin="anonymous" href="../assets/css/stylesheet.5cfc680b1eeaeef9efbced92d46c2a9e876b72ee14fba85846afc4cff9e6e6f8.css" integrity="sha256-XPxoCx7q7vnvvO2S1Gwqnodrcu4U&#43;6hYRq/Ez/nm5vg=" rel="preload stylesheet" as="style">
<link rel="icon" href="../static/favicon.ico">
<link rel="icon" href="../favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../static/rsmsncircles.ico">
<link rel="icon" type="image/png" sizes="32x32" href="../rsmsncircles.ico">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<link rel="mask-icon" href="../safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">