blob: 6d2105fca9320fc388ba55065469d42cc538ae4a [file] [log] [blame]
Nico Huber8cd50ee2023-06-24 15:35:16 +00001server {
Nico Huber38c14da2023-06-24 16:59:28 +00002 listen 80;
3 listen [::]:80;
4
Nico Huber15edd772023-07-01 18:16:50 +00005 location /.well-known/acme-challenge/ {
6 root /var/www/certbot;
7 }
8
9 location / {
10 return 301 https://$host$request_uri;
11 }
Nico Huber38c14da2023-06-24 16:59:28 +000012}
13
14server {
15 listen 443 ssl;
16 listen [::]:443 ssl;
Nico Hubera1a296f2023-06-25 10:07:07 +000017
18 server_name id.miau.local;
19
20 root /var/www/html;
21 location / {
22 index index.php index.html;
23 }
24 location ~ \.php$ {
25 include fastcgi_params;
26 fastcgi_pass simpleid:9000;
27 fastcgi_index index.php;
28 fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
29 }
30}
31
32server {
33 listen 443 ssl default_server;
34 listen [::]:443 ssl default_server;
Nico Huber15edd772023-07-01 18:16:50 +000035 ssl_certificate /etc/nginx/certs/live/miau.local/fullchain.pem;
36 ssl_certificate_key /etc/nginx/certs/live/miau.local/privkey.pem;
Nico Huber38c14da2023-06-24 16:59:28 +000037 ssl_protocols TLSv1.3;
38 ssl_prefer_server_ciphers on;
39 #ssl_dhparam /etc/nginx/dhparam.pem;
40 ssl_ciphers EECDH+AESGCM:EDH+AESGCM;
41 ssl_ecdh_curve secp384r1;
42 ssl_session_timeout 10m;
43 ssl_session_cache shared:SSL:10m;
44 ssl_session_tickets off;
45 ssl_stapling on;
46 ssl_stapling_verify on;
47 resolver 8.8.8.8 8.8.4.4 valid=300s;
48 resolver_timeout 5s;
49 # Disable strict transport security for now. You can uncomment the following
50 # line if you understand the implications.
51 #add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
52 add_header X-Frame-Options DENY;
53 add_header X-Content-Type-Options nosniff;
54 add_header X-XSS-Protection "1; mode=block";
Nico Huber8cd50ee2023-06-24 15:35:16 +000055
Nico Hubera1a296f2023-06-25 10:07:07 +000056 server_name review.miau.local;
Nico Huber8cd50ee2023-06-24 15:35:16 +000057
Nico Huber8cd50ee2023-06-24 15:35:16 +000058 location / {
Nico Hubera1a296f2023-06-25 10:07:07 +000059 proxy_pass http://gerrit:8080;
60 proxy_set_header X-Forwarded-For $remote_addr;
61 proxy_set_header Host $host;
Nico Huber8cd50ee2023-06-24 15:35:16 +000062 }
63}