Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
@Bean | |
fun webMvcConfiguration(): WebMvcConfigurer { | |
return object : WebMvcConfigurer { | |
override fun addCorsMappings(registry: CorsRegistry) { | |
registry.addMapping("/**").allowedMethods("*").allowedOrigins("*") | |
} | |
} | |
} |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
# Holds repositories directory | |
sudo chown -R -v git:root /var/opt/gitlab/git-data | |
sudo chmod -R -v 0700 /var/opt/gitlab/git-data | |
# Holds git repositories | |
sudo chown -R -v git:git /var/opt/gitlab/git-data/repositories | |
sudo chmod -R -v 2770 /var/opt/gitlab/git-data/repositories | |
# Holds large object directories | |
sudo chown -R -v git:gitlab-www /var/opt/gitlab/gitlab-rails/shared |
curl -v -X PUT -su <user> --data-binary @"<file>" https://<owncloud-server>/remote.php/webdav/<owncloud-file> |
## Proxy pass - Permission denied | |
`setsebool httpd_can_network_connect true` |
# connect | |
mysql -u root -p | |
# List databases | |
show databases; | |
# create database | |
create database database-name; | |
# Create user |
# Use snippet in configuration file | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name <your site>; | |
include snippets/letsencrypt.conf; | |
return 301 https://$server_name$request_uri; | |
} |
#!/usr/bin/env bash | |
cd /var/opt/gitlab/backups/ | |
gitlab-rake gitlab:backup:create | |
filename="$(ls -t /var/opt/gitlab/backups/ | head -1)" | |
date=$(date -I) | |
basicAuth="username:password" | |
remotedir="https://owncloud_remote_url/remote.php/webdav/backups" # make sure folder exists |
# Disable shadow | |
defaults write com.apple.screencapture disable-shadow -bool true ; killall SystemUIServer | |
# Enable shadow | |
defaults write com.apple.screencapture disable-shadow -bool false ; killall SystemUIServer |
https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/ |