mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Updated administration documentation
This commit is contained in:
23
docs/Resources/example_nginx.conf
Normal file
23
docs/Resources/example_nginx.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name yoursubdomain.domain.dom;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl; # initial config: listen 80;
|
||||
server_name yoursubdomain.domain.dom;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/yoursubdomain.domain.dom/fullchain.pem; # initial config: comment out
|
||||
ssl_certificate_key /etc/letsencrypt/live/yoursubdomain.domain.dom/privkey.pem; # initial config: comment out
|
||||
|
||||
client_max_body_size 500G;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:5000/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
35
docs/Resources/example_systemd.service
Normal file
35
docs/Resources/example_systemd.service
Normal file
@@ -0,0 +1,35 @@
|
||||
[Unit]
|
||||
Description=HAM .NET Application
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
NotifyAccess=all
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
# Working directory
|
||||
WorkingDirectory=/var/www/HAM
|
||||
|
||||
# Application settings
|
||||
ExecStart=/usr/bin/dotnet /var/www/HAM/Berufsschule_HAM.dll
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
#TimeoutStopSec=30
|
||||
#TimeoutStartSec=60
|
||||
|
||||
# Environment variables (uncomment and modify as needed)
|
||||
Environment=DOTNET_ENVIRONMENT=Production
|
||||
|
||||
# Security settings
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=ham
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user