Skip to content

Add SSL support #4

@sarahcssiqueira

Description

@sarahcssiqueira

Is your feature request related to a problem? Please describe.

  • The current environment supports only HTTP, that means the local and production versions are different and sometimes can be more difficult to spot problems.

Describe the solution you'd like

  • Allow the users easily customize the "domain name" instead of "localhost:port".

Describe alternatives you've considered

  • Use a self-signed certificate (at first I thought about use Let's Encrypt or mkcert but more research is required).
  • Use virtual hosts from the Apache web server. By default, Apache on Ubuntu has one server block enabled that is configured to serve documents from the /var/www/html directory, but we can encapsulate configuration details editing/creating a virtual host file with the specific directives on /etc/apache2/sites-available/domain-name.conf
  • The file content mapped (which could be easily customized) would be something like:
 <VirtualHost *:443>
    ServerAdmin webmaster@localhost
    ServerName domain-name.com
    ServerAlias www.domain-name.com
    DocumentRoot /var/www/domain-name
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions