forked from certbot/certbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move apache constants/args/IConfig to its subdirectory
- Loading branch information
Showing
6 changed files
with
54 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Apache plugin constants.""" | ||
import pkg_resources | ||
|
||
|
||
# CLI/IConfig defaults | ||
DEFAULT_SERVER_ROOT = "/etc/apache2" | ||
DEFAULT_MOD_SSL_CONF = "/etc/letsencrypt/options-ssl.conf" | ||
DEFAULT_CTL = "apache2ctl" | ||
DEFAULT_ENMOD = "a2enmod" | ||
DEFAULT_INIT_SCRIPT = "/etc/init.d/apache2" | ||
|
||
|
||
MOD_SSL_CONF = pkg_resources.resource_filename( | ||
"letsencrypt.client.plugins.apache", "options-ssl.conf") | ||
"""Path to the Apache mod_ssl config file found in the Let's Encrypt | ||
distribution.""" | ||
|
||
REWRITE_HTTPS_ARGS = [ | ||
"^.*$", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,R=permanent]"] | ||
"""Apache rewrite rule arguments used for redirections to https vhost""" |
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