Skip to content
Snippets Groups Projects
Commit aa391e56 authored by MichiK's avatar MichiK
Browse files

Add nginx config for rt

parent 9e1252b6
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ acmetool_cert_domains: ...@@ -5,6 +5,7 @@ acmetool_cert_domains:
- c3heaven.de - c3heaven.de
- lists.c3heaven.de - lists.c3heaven.de
- md.c3heaven.de - md.c3heaven.de
- rt.c3heaven.de
- sso.c3heaven.de - sso.c3heaven.de
- wiki.c3heaven.de - wiki.c3heaven.de
- www.c3heaven.de - www.c3heaven.de
...@@ -90,7 +91,16 @@ nginx_https_sites: ...@@ -90,7 +91,16 @@ nginx_https_sites:
- location: "~ ^/liste/?$" - location: "~ ^/liste/?$"
config: |- config: |-
return 301 https://$host/Liste; return 301 https://$host/Liste;
- name: "rt.c3heaven.de"
locations:
- location: "/"
config: |-
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_NAME "";
fastcgi_pass 127.0.0.1:9000;
- location: "/REST/1.0/NoAuth"
config: |-
deny all;
- name: "sso.c3heaven.de" - name: "sso.c3heaven.de"
locations: locations:
- location: "/" - location: "/"
...@@ -150,7 +160,7 @@ rspamd_enabled: true ...@@ -150,7 +160,7 @@ rspamd_enabled: true
postfix_mydestination: "localhost, $myhostname, c3heaven.de" postfix_mydestination: "localhost, $myhostname, c3heaven.de"
postfix_myorigin: "c3heaven.de" postfix_myorigin: "c3heaven.de"
postfix_mynetworks: "127.0.0.1/32 159.69.40.72/32 10.23.42.0/24 [::1]/128 [2a01:4f8:c2c:df32::]/64 [2a01:4f8:c2c:b190::]/64 [fe80::9400:ff:fe31:9902]/128 [fe80::8400:ff:fe34:27e5]/128" postfix_mynetworks: "127.0.0.1/32 159.69.40.72/32 10.23.42.0/24 [::1]/128 [2a01:4f8:c2c:df32::]/64 [fe80::9400:ff:fe31:9902]/128 [fe80::8400:ff:fe34:27e5]/128"
postfix_generic_map: postfix_generic_map:
- "www-data@c3heaven.de noreply@c3heaven.de" - "www-data@c3heaven.de noreply@c3heaven.de"
postfix_additional_admin_aliases: postfix_additional_admin_aliases:
......
acmetool_cert_domains:
- "sso.c3heaven.de"
nginx_http_locations:
- location: "/"
config: |
return 301 https://$host$request_uri;
nginx_https_sites:
- name: "sso.c3heaven.de"
locations:
- location: "/"
config: |
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://localhost:8080/;
headers: null
# vim: set ft=yaml:
acmetool_cert_domains:
- "test01.heaven.michik.net"
#acmetool_server: "https://acme-staging.api.letsencrypt.org/directory"
nginx_http_locations:
- location: "/"
config: |
return 301 https://$host$request_uri;
nginx_https_sites:
- name: "test01.heaven.michik.net"
locations:
- location: "/"
config: |
root /var/www/html;
headers: null
# vim: set ft=yaml:
# Before changing this, please make sure that the DNS entries exist, otherwise
# acmetool will fail horribly!
acmetool_cert_domains:
- ticket.c3heaven.de
nginx_http_locations:
- location: "/"
config: |-
access_log off;
log_not_found off;
return 301 https://$host$request_uri;
nginx_https_default_headers:
- 'Strict-Transport-Security "max-age=31536000; includeSubDomains"'
- 'X-XSS-Protection "1; mode=block"'
- 'X-Frame-Options "SAMEORIGIN"'
- 'X-Content-Type-Options "nosniff"'
- 'Referrer-Policy "same-origin"'
postfix_mydestination: "localhost, $myhostname"
postfix_myorigin: "c3heaven.de"
postfix_alias_maps:
- "hash:/etc/aliases"
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
# configuration of the new machine. # configuration of the new machine.
[hetzner] [hetzner]
gabriel.c3heaven.de gabriel.c3heaven.de
ticket.c3heaven.de
# Monitoring host # Monitoring host
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment