Skip to content

Instantly share code, notes, and snippets.

View d70rr3s's full-sized avatar
🏠
Working from home

Dennis A. Torres Rodriguez d70rr3s

🏠
Working from home
View GitHub Profile
@d70rr3s
d70rr3s / renew-gpgkey.md
Created January 8, 2023 22:06 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@d70rr3s
d70rr3s / apache reverse proxy for docker app
Created January 20, 2023 23:37
apache reverse proxy for docker
# Making temporary redirect from http to https
<VirtualHost *:80>
ServerName example.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/ [R=307,L]
</VirtualHost>