sudo qemu-system-x86_64 -machine accel=kvm:tcg -m 2048 -hda /dev/sdb
Di mana /dev/sdb adalah drive untuk USB
sudo qemu-system-x86_64 -machine accel=kvm:tcg -m 2048 -hda /dev/sdb
Di mana /dev/sdb adalah drive untuk USB
$ docker volume create portainer_data
$docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
pip install whitenoise whitenoise[brotli]
MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
# ...
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
# ...
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
./manage.py collectstatic
# ...
from django.conf import settings
from django.conf.urls.static import static
# ...
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
<virtualhost>
ServerName sub.domain.com
ServerAdmin webmaster@domain.com
ProxyRequests off
<proxy *>
Order deny,allow
Allow from all
</proxy>
<location />
ProxyPass http://localhost:8100/
ProxyPassReverse http://localhost:8100/
</location>
</virtualhost>
Listen 8000
<VirtualHost *:8000>
ServerAdmin user@domain.com
ServerName app.domain.com
ServerAlias app
SSLEngine on
# Jika menggunakan SSL certificate
SSLCertificateFile /path/to/file.crt
SSLCertificateKeyFile /path/to/file.id.key
SSLCertificateChainFile /path/to/intermediate.crt
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>