modified
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,10 +3,12 @@ volumes/html/*
|
||||
|
||||
# But not these directories
|
||||
!volumes/html/dl.zinomedia.de
|
||||
!volumes/html/pkrstarsbot.zinomedia.de
|
||||
!volumes/logs/
|
||||
|
||||
# Ignore contents of these directories
|
||||
volumes/html/dl.zinomedia.de/*
|
||||
volumes/html/pkrstarsbot.zinomedia.de/*
|
||||
volumes/logs/*
|
||||
|
||||
# Do not ignore a special file name
|
||||
|
||||
42
volumes/conf.d/pkrstarsbot.zinomedia.de.conf
Normal file
42
volumes/conf.d/pkrstarsbot.zinomedia.de.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name pkrstarsbot.zinomedia.de;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/error.log error;
|
||||
|
||||
root /usr/share/nginx/html/pkrstarsbot.zinomedia.de/www/htdocs;
|
||||
index index.php;
|
||||
|
||||
# SSL Certificate Configuration
|
||||
ssl_certificate /etc/letsencrypt/live/pkrstarsbot.zinomedia.de/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/pkrstarsbot.zinomedia.de/privkey.pem;
|
||||
|
||||
# SSL Optimizations
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_timeout 10m;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; img-src 'self' data:; style-src 'self'; font-src 'self' data:;" always;
|
||||
|
||||
# PHP Processing (Adjust if using PHP)
|
||||
# location ~ \.php$ {
|
||||
# include snippets/fastcgi-php.conf;
|
||||
# fastcgi_pass unix:/var/run/php/php-version-fpm.sock;
|
||||
# }
|
||||
|
||||
# Static File Caching (Optional)
|
||||
# location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||
# expires 30d;
|
||||
# add_header Cache-Control "public, immutable";
|
||||
# }
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name pkrstarsbot.zinomedia.de;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
0
volumes/html/pkrstarsbot.zinomedia.de/.gitkeep
Normal file
0
volumes/html/pkrstarsbot.zinomedia.de/.gitkeep
Normal file
Reference in New Issue
Block a user