mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-06 11:56:15 +08:00
Move confs into own dir
This commit is contained in:
11
src/nginxconfig/generators/conf/letsencrypt.conf.js
Normal file
11
src/nginxconfig/generators/conf/letsencrypt.conf.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default global => {
|
||||
const config = {};
|
||||
|
||||
config['# ACME-challenge'] = '';
|
||||
config['location ^~ /.well-known/acme-challenge/'] = {
|
||||
root: global.https.letsEncryptRoot.computed.replace(/\/+$/, ''),
|
||||
};
|
||||
|
||||
// Done!
|
||||
return config;
|
||||
};
|
||||
Reference in New Issue
Block a user