diff --git a/README.md b/README.md index ec8bb8ecee29b3949e0e57b55abec3dee598e02e..cefa36008036a4f56ade0f559459f53fe0f4de34 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,6 @@ > Web proxy Dockerized setup. -## Branches - -The `master` branch doesn't have any configuration in it. The `ns4` and `host01` -branches have configuration for those hoss. - ## License This software is licensed under the MIT license (see `LICENSE.txt`). diff --git a/conf.d/autoconfig.shore.co.il.conf b/conf.d/autoconfig.shore.co.il.conf new file mode 100644 index 0000000000000000000000000000000000000000..84109f9a2de57bb3bd4020467b065df47193e96f --- /dev/null +++ b/conf.d/autoconfig.shore.co.il.conf @@ -0,0 +1,21 @@ +server { + listen 80; + listen [::]:80; + server_name autoconfig.shore.co.il; + root /var/www/autoconfig.shore.co.il/; + include snippets/www-acme-challenge.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/robots-allow-all.conf; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name autoconfig.shore.co.il; + root /var/www/autoconfig.shore.co.il/; + include snippets/robots-allow-all.conf; + include snippets/ads-txt.conf; + include snippets/security-txt.conf; + include snippets/ssl.conf; +} diff --git a/conf.d/registry.shore.co.il.conf b/conf.d/registry.shore.co.il.conf new file mode 100644 index 0000000000000000000000000000000000000000..07a290217a0b99b8928318c9d973ddba251e885b --- /dev/null +++ b/conf.d/registry.shore.co.il.conf @@ -0,0 +1,23 @@ +map $host $registry { default registy; } + +server { + listen 80; + listen [::]:80; + server_name registry.shore.co.il; + include snippets/www-acme-challenge.conf; + include snippets/redirect-https.conf; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name registry.shore.co.il; + include snippets/ssl.conf; + + location / { + proxy_pass http://$registry$request_uri; + proxy_http_version 1.1; + include snippets/proxy-headers.conf; + include snippets/allow-private-ips.conf; + } +} diff --git a/docker-compose.yml b/docker-compose.yml index 23b11ddf76b1e9b5a9a87b6e59dfe1cc3f760275..bf2e1833ee4fd4fa5df1c70825f08659c3c5306f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: default: aliases: - *hostname + - autoconfig.shore.co.il ports: - '80:80' - '443:443' diff --git a/www/autoconfig.shore.co.il/mail/config-v1.1.xml b/www/autoconfig.shore.co.il/mail/config-v1.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..47a4197c6e875206ad9139865e879968cb119d3d --- /dev/null +++ b/www/autoconfig.shore.co.il/mail/config-v1.1.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<clientConfig version="1.1"> + <emailProvider id="shore.co.il"> + <domain>shore.co.il</domain> + <displayName>Shore technologies</displayName> + <displayShortName>Shore</displayShortName> + <incomingServer type="imap"> + <hostname>imap.shore.co.il</hostname> + <port>993</port> + <socketType>SSL</socketType> + <authentication>password-cleartext</authentication> + <username>%EMAILLOCALPART%</username> + </incomingServer> + <outgoingServer type="smtp"> + <hostname>smtp.shore.co.il</hostname> + <port>587</port> + <socketType>STARTTLS</socketType> + <authentication>password-cleartext</authentication> + <username>%EMAILLOCALPART%</username> + </outgoingServer> + </emailProvider> +</clientConfig> +