This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule ssl_module libexec/apache2/mod_ssl.so | |
Listen 443 | |
<VirtualHost *:443> | |
ServerName example.com | |
SSLEngine on | |
SSLCertificateFile "/etc/letsencrypt/live/example.com/cert.pem" | |
SSLCertificateKeyFile "/etc/letsencrypt/live/example.com/privkey.pem" | |
SSLCertificateChainFile "/etc/letsencrypt/live/example.com/chain.pem" | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.blahblah.com/$1 [R,L] | |
RewriteCond %{HTTP_HOST} ^www\.blahblah\.com [NC] | |
RewriteRule ^(.*)$ https://blahblah.com/$1 [L,R=301] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# match any URL with www and rewrite it to https without the www | |
RewriteCond %{HTTP_HOST} ^(www\.)(.*) [NC] | |
RewriteRule (.*) https://%2%{REQUEST_URI} [R=301,L] | |
# match non https and redirect to https | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rewrite Engine On | |
#RewriteCond %{SERVER_PORT} !^8443$ [OR] | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} ^www\. [NC] | |
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] | |
#removed port from rule | |
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Request, Response } from "@opennetwork/http-representation"; | |
import { getType, notAccepted } from "./combine"; | |
import { Fetcher } from "./fetcher"; | |
import { readdir } from "./readdir"; | |
import { combineForResponse } from "./combine"; | |
export type SimpleGlobOptions = { | |
fetch: Fetcher | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib/ is intended for code that can run as-is | |
src/ is intended for code that needs to be manipulated before it can be used | |
build/ is for any scripts or tooling needed to build your project | |
dist/ is for compiled modules that can be used with other systems. | |
bin/ is for any executable scripts, or compiled binaries used with, or built from your module. | |
test/ is for all of your project/module's test scripts | |
unit/ is a sub-directory for unit tests | |
integration/ is a sub-directory for integration tests | |
env/ is for any environment that's needed for testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const auth = require('solid-auth-cli') | |
const file = 'https://jeffz.solid.community/public/likes.ttl.meta' | |
async function run(){ | |
await auth.login() | |
await auth.fetch(file,{ | |
method:"PUT", | |
body:"<> a <#test>.", | |
contentType:"text/turtle" | |
}).catch(e=>{console.log("Error : "+e)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const quad = require('rdf-quad'); | |
quad('http://example.org/subject', 'http://example.org/predicate', '?variable'); | |
quad('http://example.org/subject', 'http://example.org/predicate', '"myString"', 'http://example.org/someGraph'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/bin$ | |
./certbot-auto certonly \ | |
--manual \ | |
--preferred-challenges=dns \ | |
(--email mad@mail.com) \ | |
--server https://acme-v02.api.letsencrypt.org/directory \ | |
--agree-tos \ | |
-d *.solidweb.org \ | |
-d solidweb.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connect root-server to net (depends on provider) (you will need ssh)<br /> | |
* order vserver at provider of your choice<br /> | |
assign FQDN to the machine<br /> | |
* setup DNS properly<br /> | |
get and deploy https certificate<br /> | |
* ssh into the machine<br /> | |
* deploy two certificates with letsencrypt/certbot (domain-cert and wildcard-cert)<br /> | |
(you will need to edit a DNS-text-record depending on the challenge) |
OlderNewer