Skip to content

Commit ab7b1d8

Browse files
committed
Change the project name to HTTPS-PORTAL
1 parent 535cbd5 commit ab7b1d8

19 files changed

Lines changed: 47 additions & 48 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ COPY ./fs_overlay /
2525
RUN chmod a+x /bin/* && \
2626
chmod a+x /etc/cron.weekly/renew_certs
2727

28-
VOLUME /var/lib/nginx-acme
28+
VOLUME /var/lib/https-portal
2929

3030
ENTRYPOINT ["/init"]

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
# Nginx-ACME
1+
# HTTPS-PORTAL
22

3-
Nginx-ACME is a fully automated HTTPS server powered by
3+
HTTPS-PORTAL is a fully automated HTTPS server powered by
44
[Nginx](http://nginx.org), [Let's Encrypt](https://letsencrypt.org) and
5-
65
[Docker](https://www.docker.com). By using it, you can run any existing web
76
application over HTTPS, with only one extra line of configuration.
87

98
The SSL certificates are obtain, and renew from Let's Encrypt automatically.
109

1110
Docker Hub page:
12-
[https://hub.docker.com/r/steveltn/nginx-acme/](https://hub.docker.com/r/steveltn/nginx-acme/)
11+
[https://hub.docker.com/r/steveltn/https-portal/](https://hub.docker.com/r/steveltn/https-portal/)
1312

1413
## Warning
1514

1615
This project is in active development stage. Use it in production with CAUTION.
1716

1817
## Quick Start
1918

20-
Nginx-ACME shipped as a Docker image, so before use it, you need a Linux
19+
HTTPS-PORTAL shipped as a Docker image, so before use it, you need a Linux
2120
machine (either local or remote host) with Docker installed. We recommand use
2221
[Docker Compose](https://docs.docker.com/compose/) to run it. Create a
2322
`docker-compose.yml` file with the following content in any directory:
2423

2524
```yaml
26-
nginx-acme:
27-
image: steveltn/nginx-acme
25+
https-portal:
26+
image: steveltn/https-portal
2827
ports:
2928
- 80:80
3029
- 443:443
@@ -51,8 +50,8 @@ Then run `docker-compose up` command in the same directory, moment later
5150
you'll get a WordPress running on
5251
[https://wordpress.example.com](https://wordpress.example.com).
5352

54-
In the above example, only environment variables under `nginx-acme` section
55-
are Nginx-ACME specific configurations.
53+
In the above example, only environment variables under `https-portal` section
54+
are HTTPS-PORTAL specific configurations.
5655

5756
Note: `PRODUCTION` flag is `false` by default, which results in a test
5857
(untrusted) certificate from Let's Encrypt.
@@ -63,8 +62,8 @@ In case you simply want to quickly get a running HTTPS server, you can use the
6362
following `docker-compose.yml` file:
6463

6564
```yaml
66-
nginx-acme:
67-
image: steveltn/nginx-acme
65+
https-portal:
66+
image: steveltn/https-portal
6867
ports:
6968
- 80:80
7069
- 443:443
@@ -87,7 +86,7 @@ Then run `docker-compose up`, now you'll have a welcome page running in
8786
You can specify multiple domains by splitting them with comma:
8887

8988
```yaml
90-
nginx-acme:
89+
https-portal:
9190
# ...
9291
environment:
9392
DOMAINS: 'wordpress.example.com -> http://wordpress, gitlab.example.com
@@ -96,14 +95,14 @@ nginx-acme:
9695

9796
### Share Certificates with Other Apps
9897

99-
You can mount an arbitrary host directory to `/var/lib/nginx-acme` as a
98+
You can mount an arbitrary host directory to `/var/lib/https-portal` as a
10099
[data volume](https://docs.docker.com/engine/userguide/dockervolumes/).
101100

102101
```yaml
103-
nginx-acme:
102+
https-portal:
104103
# ...
105104
volumes:
106-
- /data/ssl_certs:/var/lib/nginx-acme
105+
- /data/ssl_certs:/var/lib/https-portal
107106
```
108107

109108
Now your certificates are available in `/data/ssl_certs` of your Docker host.
@@ -136,9 +135,9 @@ the rate limit is
136135
The former is not usually a problem, however the latter could be if you want
137136
to use multiple sub-domains on a single domain. Let's Encrypt does support SAN
138137
certificates, however it requires careful planning and is hard to automate. So
139-
in Nginx-ACME we only deal with CN certificates.
138+
in HTTPS-PORTAL we only deal with CN certificates.
140139

141-
Nginx-ACME stores your certificates in a data volume and will not re-sign
140+
HTTPS-PORTAL stores your certificates in a data volume and will not re-sign
142141
certificates until 30 days before expiration if one exists (you can force
143142
renew certificates by using `FORCE_RENEW: 'true'` environment variable).
144143
However if you play around with the image a lot, you can hit the limit. That's

examples/custom_config/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM steveltn/nginx-acme
1+
FROM steveltn/https-portal
22

33
ADD ./nginx-conf/ /var/lib/nginx-conf

examples/custom_config/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nginx-acme:
1+
https-portal:
22
build: ./
33
ports:
44
- 80:80

examples/minimal/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
nginx-acme:
2-
image: steveltn/nginx-acme
1+
https-portal:
2+
image: steveltn/https-portal
33
# You can build from source code rather than use the prebuilt image from Docker Hub.
44
# build: ../..
55
ports:

examples/wordpress/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
nginx-acme:
2-
image: steveltn/nginx-acme
1+
https-portal:
2+
image: steveltn/https-portal
33
# You can build from source code rather than use the prebuilt image from Docker Hub.
44
# build: ../..
55
ports:
66
- 80:80
77
- 443:443
88
links:
99
- wordpress
10-
# Restart nginx-acme on failure or after Docker host restart.
10+
# Restart https-portal on failure or after Docker host restart.
1111
restart: always
1212
environment:
1313
# Forward wordpress.example.com to the WordPress container.

fs_overlay/opt/certs_manager/certs_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def ensure_signed(domains)
7676
end
7777

7878
def obtain_lock
79-
self.lock = File.open("/tmp/nginx-acme.lock", File::CREAT)
79+
self.lock = File.open("/tmp/https-portal.lock", File::CREAT)
8080

8181
lock.flock File::LOCK_EX
8282
end

fs_overlay/opt/certs_manager/lib/acme.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def self.sign(domain)
44

55
command = <<-EOC
66
acme_tiny \
7-
--account-key /var/lib/nginx-acme/account.key \
7+
--account-key /var/lib/https-portal/account.key \
88
--csr #{domain.csr_path} \
99
--acme-dir /var/www/challenges/ \
1010
--ca #{NAConfig.ca} > #{domain.signed_cert_path}

fs_overlay/opt/certs_manager/lib/commands.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
module Commands
44
def download_intermediate_cert
5-
File.open('/var/lib/nginx-acme/intermediate.pem', 'wb') do |saved_file|
5+
File.open('/var/lib/https-portal/intermediate.pem', 'wb') do |saved_file|
66
open('https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem', "rb") do |read_file|
77
saved_file.write(read_file.read)
88
end
99
end
1010
end
1111

1212
def chain_keys(domain)
13-
system "cat #{domain.signed_cert_path} /var/lib/nginx-acme/intermediate.pem > #{domain.chained_cert_path}"
13+
system "cat #{domain.signed_cert_path} /var/lib/https-portal/intermediate.pem > #{domain.chained_cert_path}"
1414
end
1515

1616
def mkdir(domain)

fs_overlay/opt/certs_manager/lib/na_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def self.force_renew?
2020
end
2121

2222
def self.dhparam_path
23-
"/var/lib/nginx-acme/dhparam.pem"
23+
"/var/lib/https-portal/dhparam.pem"
2424
end
2525

2626
def self.env_domains

0 commit comments

Comments
 (0)