Skip to content

Commit

Permalink
Update Root CA Path and fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilph committed Oct 6, 2024
1 parent df72e69 commit b17e2b4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions umbrel-HTTPSizer/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ app.use('/', indexRouter);
app.use('/first-run', firstRunRouter);
app.use('/https-error', httpsErrorRouter);

app.get('/ssl.cert', function(req, res){
res.download(CONSTANTS.HTTPS_CERT_PATH); // Set disposition and send it.
app.get('/root-ca.crt', function(req, res){
res.download(CONSTANTS.HTTPS_ROOT_CA_CERT_PATH); // Set disposition and send it.
});

// catch 404 and forward to error handler
Expand Down
2 changes: 1 addition & 1 deletion umbrel-HTTPSizer/utils/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ module.exports = Object.freeze({

APP_DATA_PATH: process.env.APP_DATA_PATH || "/app-data",

HTTPS_CERT_PATH: readFromFsOrTerminate(process.env.HTTPS_CERT_PATH || "/ssl/ssl.cert"),
HTTPS_ROOT_CA_CERT_PATH: readFromFsOrTerminate(process.env.HTTPS_ROOT_CA_CERT_PATH || "/ssl/root-ca.crt"),

});
10 changes: 5 additions & 5 deletions umbrel-HTTPSizer/views/firstRun.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@

<ul class="alt">
<li>
<h3>1. Download CA Certificate</h3>
<p>You now have a CA certificate which Ubmrel will use to encrypt the traffic.
<h3>1. Download Root CA Certificate</h3>
<p>You now have a Root CA certificate which Umbrel will use, for signing it SSL certificate and then in-turn to encrypt the traffic.
Download it using the button below:
</p>
<a href="/ssl.cert" class="button"><i class="fa-solid fa-lock" style="color: #74C0FC;"></i> Download CA Cert</a>
<a href="/root-ca.crt" class="button"><i class="fa-solid fa-lock" style="color: #74C0FC;"></i> Download Root CA Cert</a>
</li>
<li>
<h3>2. Trust CA Certificate</h3>
<p>When you trust the CA certificate, you can verify the autheticity of the traffic coming from your Umbrel.</p>
<h3>2. Trust Root CA Certificate</h3>
<p>When you trust the Root CA certificate, you can verify the authenticity of the traffic coming from your Umbrel.</p>
<p>Follow the instructions for your OS/Browser from the link below and then come back to this page: </p>
<a href="https://github.com/sahilph/umbrel-HTTPSizer/wiki" target="_blank" class="button primary"><i class="fa-solid fa-share"></i> View Instructions</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions umbrel-HTTPSizer/views/httpsError.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ul class="actions">
<li><a href="//<%= hostname_wo_port %>/settings?dialog=restart" target="_blank" class="button"><i class="fa-solid fa-arrows-rotate" style="color: #790a0a;"></i> Restart Umbrel</a></li>
<li><a href="https://<%= hostname %>/" class="button"><i class="fa-solid fa-house"> </i> Go to Home Page</a></li>
<li><a href="/first-run?redirectHome=false" class="button"><i class="fa-solid fa-display"></i> Re-show First Run Page</a></li>
</ul>

</div>
Expand Down
4 changes: 2 additions & 2 deletions umbrel-HTTPSizer/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
Umbrel on HTTPS for your local network.
</p>
<ul class="actions">
<li><a href="/ssl.cert" class="button"><i class="fa-solid fa-lock" style="color: #74C0FC;"></i> Download CA Cert</a></li>
<li><a href="/root-ca.crt" class="button"><i class="fa-solid fa-lock" style="color: #74C0FC;"></i> Download Root CA Cert</a></li>
<li><a href="/first-run?redirectHome=false" class="button"><i class="fa-solid fa-display"></i> Re-show First Run Page</a></li>
</ul>

Expand All @@ -65,7 +65,7 @@
<ol class="alt" style="text-align: left;">
<li>
<h3>How to I go back to the original HTTP version ?</h3>
<p>Thats easy! Just uninstall this app and it will restore all the original settings.</p>
<p>The instructions for this are available at the wiki: <a href="https://github.com/sahilph/umbrel-HTTPSizer/wiki">https://github.com/sahilph/umbrel-HTTPSizer/wiki</a></p>
</li>
<li>
<h3>Where can I report any issues</h3>
Expand Down

0 comments on commit b17e2b4

Please sign in to comment.